Skip to content

Commit 0d99510

Browse files
committed
Accept new baselines
1 parent 39c4b8f commit 0d99510

1 file changed

Lines changed: 28 additions & 34 deletions

File tree

tests/baselines/reference/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.errors.txt

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ tests/cases/compiler/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.t
55
Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
66
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
77
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
8-
Type '"text"' is not assignable to type 'T & "text"'.
9-
Type '"text"' is not assignable to type 'T'.
10-
'"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
11-
Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
12-
Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
13-
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
14-
Type '"text"' is not assignable to type 'T & "text"'.
15-
Type '"text"' is not assignable to type 'T'.
16-
'"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
17-
Type 'T' is not assignable to type 'T & "text"'.
18-
Type '"text" | "email"' is not assignable to type 'T & "text"'.
19-
Type '"text"' is not assignable to type 'T & "text"'.
20-
Type '"text"' is not assignable to type 'T'.
21-
'"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
22-
Type 'T' is not assignable to type '"text"'.
23-
Type '"text" | "email"' is not assignable to type '"text"'.
24-
Type '"email"' is not assignable to type '"text"'.
8+
Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
9+
Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
10+
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
11+
Type '"text"' is not assignable to type 'T & "text"'.
12+
Type '"text"' is not assignable to type 'T'.
13+
'"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
14+
Type 'T' is not assignable to type 'T & "text"'.
15+
Type '"text" | "email"' is not assignable to type 'T & "text"'.
16+
Type '"text"' is not assignable to type 'T & "text"'.
17+
Type '"text"' is not assignable to type 'T'.
18+
'"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
19+
Type 'T' is not assignable to type '"text"'.
20+
Type '"text" | "email"' is not assignable to type '"text"'.
21+
Type '"email"' is not assignable to type '"text"'.
2522

2623

2724
==== tests/cases/compiler/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.ts (1 errors) ====
@@ -66,23 +63,20 @@ tests/cases/compiler/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.t
6663
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
6764
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
6865
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
69-
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
70-
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
71-
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
72-
!!! error TS2322: Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
73-
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
74-
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
75-
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
76-
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
77-
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
78-
!!! error TS2322: Type 'T' is not assignable to type 'T & "text"'.
79-
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'T & "text"'.
80-
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
81-
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
82-
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
83-
!!! error TS2322: Type 'T' is not assignable to type '"text"'.
84-
!!! error TS2322: Type '"text" | "email"' is not assignable to type '"text"'.
85-
!!! error TS2322: Type '"email"' is not assignable to type '"text"'.
66+
!!! error TS2322: Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
67+
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
68+
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
69+
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
70+
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
71+
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
72+
!!! error TS2322: Type 'T' is not assignable to type 'T & "text"'.
73+
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'T & "text"'.
74+
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
75+
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
76+
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
77+
!!! error TS2322: Type 'T' is not assignable to type '"text"'.
78+
!!! error TS2322: Type '"text" | "email"' is not assignable to type '"text"'.
79+
!!! error TS2322: Type '"email"' is not assignable to type '"text"'.
8680
}
8781

8882
const newTextChannel = makeNewChannel('text');

0 commit comments

Comments
 (0)