mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Add regression test
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user