mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-12 11:50:54 -06:00
Update fourslash tests
This commit is contained in:
parent
d2397e0380
commit
aa0ea51169
@ -15,5 +15,5 @@
|
||||
|
||||
verify.quickInfos({
|
||||
1: "function ComponentSpecific<number>(l: {\n prop: number;\n}): any",
|
||||
2: "function ComponentSpecific<number & string>(l: {\n prop: number & string;\n}): any"
|
||||
2: "function ComponentSpecific<never>(l: {\n prop: never;\n}): any"
|
||||
});
|
||||
|
||||
@ -24,6 +24,6 @@ verify.quickInfos({
|
||||
3: "function OverloadComponent<boolean, string>(attr: {\n b: string;\n a: boolean;\n}): any (+2 overloads)",
|
||||
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 `{}`)
|
||||
5: "function OverloadComponent(): any (+2 overloads)",
|
||||
6: "function OverloadComponent<boolean, string & number>(attr: {\n b: string & number;\n a: boolean;\n}): any (+2 overloads)",
|
||||
7: "function OverloadComponent<boolean, number & string>(attr: {\n b: number & string;\n a: boolean;\n}): any (+2 overloads)",
|
||||
6: "function OverloadComponent<boolean, never>(attr: {\n b: never;\n a: boolean;\n}): any (+2 overloads)",
|
||||
7: "function OverloadComponent<boolean, never>(attr: {\n b: never;\n a: boolean;\n}): any (+2 overloads)",
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user