Skip to content

Commit aa0ea51

Browse files
committed
Update fourslash tests
1 parent d2397e0 commit aa0ea51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/cases/fourslash/tsxQuickInfo6.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515

1616
verify.quickInfos({
1717
1: "function ComponentSpecific<number>(l: {\n prop: number;\n}): any",
18-
2: "function ComponentSpecific<number & string>(l: {\n prop: number & string;\n}): any"
18+
2: "function ComponentSpecific<never>(l: {\n prop: never;\n}): any"
1919
});

tests/cases/fourslash/tsxQuickInfo7.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ verify.quickInfos({
2424
3: "function OverloadComponent<boolean, string>(attr: {\n b: string;\n a: boolean;\n}): any (+2 overloads)",
2525
4: "function OverloadComponent(): any (+2 overloads)", // Subtype pass chooses this overload, since `a` is missing from the top overload, and `ignore-prop` is missing from the second (while T & {ignore-prop: true} is a proper subtype of `{}`)
2626
5: "function OverloadComponent(): any (+2 overloads)",
27-
6: "function OverloadComponent<boolean, string & number>(attr: {\n b: string & number;\n a: boolean;\n}): any (+2 overloads)",
28-
7: "function OverloadComponent<boolean, number & string>(attr: {\n b: number & string;\n a: boolean;\n}): any (+2 overloads)",
27+
6: "function OverloadComponent<boolean, never>(attr: {\n b: never;\n a: boolean;\n}): any (+2 overloads)",
28+
7: "function OverloadComponent<boolean, never>(attr: {\n b: never;\n a: boolean;\n}): any (+2 overloads)",
2929
});

0 commit comments

Comments
 (0)