mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Add regression test
This commit is contained in:
parent
34b35df086
commit
32ea3b2cb0
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user