Fix bug: VariableDeclaration initializer may be undefined (#24256)

This commit is contained in:
Andy
2018-05-21 07:58:33 -07:00
committed by GitHub
parent 153c1806d3
commit c09cc70ebe
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
// @Filename: /a.ts
////[|import { a, b } from "m";
////let l;
////a;|]
////b;
@@ -10,8 +11,9 @@ verify.moveToNewFile({
"/a.ts":
`import { b } from "m";
b;`,
"/newFile.ts":
"/l.ts":
`import { a } from "m";
let l;
a;`,
}
});