importTracker: Fix error for undefined importClause

This commit is contained in:
Andy Hanson committed 2017-05-01 07:54:41 -07:00
1 parent 7080c4155b
commit a70b79072b
2 files changed
+15

No files matched your search

+4
View File
@@ -212,6 +212,10 @@ namespace ts.FindAllReferences {
return;
}
if (!decl.importClause) {
return;
}
const { importClause } = decl;
const { namedBindings } = importClause;
@@ -0,0 +1,11 @@
/// <reference path="fourslash.ts" />
// https://github.com/Microsoft/TypeScript/issues/15452
// @Filename: /a.ts
////export const [|x|] = 0;
// @Filename: /b.ts
////import "./a";
verify.singleReferenceGroup("const x: 0");