mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Added tests for template strings with string literal types.
This commit is contained in:
1 parent
c011ed455b
commit
38090c6ba5
2 files changed
+12
No files matched your search
@@ -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