Add regression test

This commit is contained in:
Anders Hejlsberg 2018-09-26 11:09:19 -07:00
parent 34b35df086
commit 32ea3b2cb0

View file

@ -1,4 +1,5 @@
// @target: es6
// @strictNullChecks: true
// Repros from #10167
@ -96,4 +97,13 @@ function goo(x: X) {
x.y;
}
x;
}
}
// Repro from #27282
declare const x: (() => void)|null;
declare const ctor: Function;
if (x instanceof ctor) {
x();
}