15 lines
514 B
Text
15 lines
514 B
Text
|
tests/cases/compiler/errorHandlingInInstanceOf.ts(1,5): error TS2304: Cannot find name 'x'.
|
||
|
tests/cases/compiler/errorHandlingInInstanceOf.ts(5,18): error TS2304: Cannot find name 'UnknownType'.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/errorHandlingInInstanceOf.ts (2 errors) ====
|
||
|
if (x instanceof String) {
|
||
|
~
|
||
|
!!! error TS2304: Cannot find name 'x'.
|
||
|
}
|
||
|
|
||
|
var y: any;
|
||
|
if (y instanceof UnknownType) {
|
||
|
~~~~~~~~~~~
|
||
|
!!! error TS2304: Cannot find name 'UnknownType'.
|
||
|
}
|