mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update test
This commit is contained in:
@@ -202,9 +202,9 @@ export abstract class BB {
|
||||
}
|
||||
|
||||
// repro from https://github.com/microsoft/TypeScript/issues/54177#issuecomment-1538436654
|
||||
function conversionTest(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | `${string & {}}Downcast`) {}
|
||||
function conversionTest(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | `${string}Downcast` & {}) {}
|
||||
conversionTest("testDowncast");
|
||||
function conversionTest2(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | `${{} & string}Downcast`) {}
|
||||
function conversionTest2(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | {} & `${string}Downcast`) {}
|
||||
conversionTest2("testDowncast");
|
||||
|
||||
function foo(str: `${`a${string}` & `${string}a`}Test`) {}
|
||||
|
||||
Reference in New Issue
Block a user