Add regression test
This commit is contained in:
parent
34b35df086
commit
32ea3b2cb0
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
// @target: es6
|
||||
// @strictNullChecks: true
|
||||
|
||||
// Repros from #10167
|
||||
|
||||
|
@ -97,3 +98,12 @@ function goo(x: X) {
|
|||
}
|
||||
x;
|
||||
}
|
||||
|
||||
// Repro from #27282
|
||||
|
||||
declare const x: (() => void)|null;
|
||||
declare const ctor: Function;
|
||||
|
||||
if (x instanceof ctor) {
|
||||
x();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue