Add test for #18071

This commit is contained in:
Francois Wouts 2017-08-28 08:14:08 +10:00
parent 884cadf0a3
commit 170bc6f519
2 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,9 @@ namespace ts {
// github #14948
printsCorrectly("templateLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let greeting = `Hi ${name}, how are you?`;", ScriptTarget.ES2017)));
// github #18071
printsCorrectly("regularExpressionLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let regex = /abc/;", ScriptTarget.ES2017)));
});
describe("printBundle", () => {

View File

@ -0,0 +1 @@
let regex = /abc/;