mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Added tests for template strings with string literal types.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// @declaration: true
|
||||
|
||||
let ABC: "ABC" = `ABC`;
|
||||
let DE_NEWLINE_F: "DE\nF" = `DE
|
||||
F`;
|
||||
let G_QUOTE_HI: 'G"HI';
|
||||
let JK_BACKTICK_L: "JK`L" = `JK\`L`;
|
||||
@@ -0,0 +1,5 @@
|
||||
// @declaration: true
|
||||
|
||||
let abc: "AB\r\nC" = `AB
|
||||
C`;
|
||||
let de_NEWLINE_f: "DE\nF" = `DE${"\n"}F`;
|
||||
Reference in New Issue
Block a user