Skip to content

Commit db46250

Browse files
committed
Accept new baselines
1 parent 07d6b1d commit db46250

7 files changed

+10
-10
lines changed

tests/baselines/reference/exhaustiveSwitchStatements1.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts(7,9): error TS7027: Unreachable code detected.
2-
tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts(235,5): error TS2367: This condition will always return 'false' since the types '"a" | "b"' and '"c"' have no overlap.
2+
tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts(235,5): error TS2367: This condition will always return 'false' since the types 'keyof O' and '"c"' have no overlap.
33

44

55
==== tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts (2 errors) ====
@@ -241,7 +241,7 @@ tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts(235,5): error
241241
}
242242
k === 'c'; // Error
243243
~~~~~~~~~
244-
!!! error TS2367: This condition will always return 'false' since the types '"a" | "b"' and '"c"' have no overlap.
244+
!!! error TS2367: This condition will always return 'false' since the types 'keyof O' and '"c"' have no overlap.
245245
return o[k];
246246
}
247247

tests/baselines/reference/exhaustiveSwitchStatements1.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,12 +695,12 @@ function ff(o: O, k: K) {
695695
}
696696
k === 'c'; // Error
697697
>k === 'c' : boolean
698-
>k : "a" | "b"
698+
>k : keyof O
699699
>'c' : "c"
700700

701701
return o[k];
702702
>o[k] : number
703703
>o : O
704-
>k : "a" | "b"
704+
>k : keyof O
705705
}
706706

tests/baselines/reference/jsxLibraryManagedAttributesUnusedGeneric.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace jsx {
3333
>css : string
3434

3535
export type LibraryManagedAttributes<C, P> = WithCSSProp<P>
36-
>LibraryManagedAttributes : WithCSSProp<P>
36+
>LibraryManagedAttributes : LibraryManagedAttributes<C, P>
3737

3838
}
3939
}

tests/baselines/reference/observableInferenceCanBeMade.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ function asObservable(input: string | ObservableInput<string>): Observable<strin
5252
>input : string
5353
>from(input) : Observable<string>
5454
>from : <O extends ObservableInput<any>>(input: O) => Observable<ObservedValueOf<O>>
55-
>input : Subscribable<never> | Subscribable<string>
55+
>input : ObservableInput<string>
5656
}
5757

tests/baselines/reference/partiallyDiscriminantedUnions.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function fail(s: Shapes) {
9595
if (s.kind === "circle") {
9696
>s.kind === "circle" : boolean
9797
>s.kind : "square" | "circle"
98-
>s : Square | Circle
98+
>s : Shape
9999
>kind : "square" | "circle"
100100
>"circle" : "circle"
101101

tests/baselines/reference/spreadBooleanRespectsFreshness.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]];
2727
>isArray : (arg: any) => arg is any[]
2828
>foo2 : Foo
2929
>foo2 : FooArray
30-
>[foo2] : (string | false)[]
31-
>foo2 : string | false
30+
>[foo2] : FooBase[]
31+
>foo2 : FooBase
3232

tests/baselines/reference/stringLiteralCheckedInIf02.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function f(foo: T) {
2929
>foo : T
3030

3131
return foo;
32-
>foo : "a" | "b"
32+
>foo : S
3333
}
3434
else {
3535
return foo[0];

0 commit comments

Comments
 (0)