Skip to content

Commit 2cf8379

Browse files
committed
Update test
1 parent f45b6dd commit 2cf8379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cases/conformance/types/literal/templateLiteralTypesPatterns.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ export abstract class BB {
202202
}
203203

204204
// repro from https://github.com/microsoft/TypeScript/issues/54177#issuecomment-1538436654
205-
function conversionTest(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | `${string & {}}Downcast`) {}
205+
function conversionTest(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | `${string}Downcast` & {}) {}
206206
conversionTest("testDowncast");
207-
function conversionTest2(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | `${{} & string}Downcast`) {}
207+
function conversionTest2(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | {} & `${string}Downcast`) {}
208208
conversionTest2("testDowncast");
209209

210210
function foo(str: `${`a${string}` & `${string}a`}Test`) {}

0 commit comments

Comments
 (0)