mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
308 B
TypeScript
18 lines
308 B
TypeScript
//// [tests/cases/compiler/errorHandlingInInstanceOf.ts] ////
|
|
|
|
//// [errorHandlingInInstanceOf.ts]
|
|
if (x instanceof String) {
|
|
}
|
|
|
|
var y: any;
|
|
if (y instanceof UnknownType) {
|
|
}
|
|
|
|
//// [errorHandlingInInstanceOf.js]
|
|
"use strict";
|
|
if (x instanceof String) {
|
|
}
|
|
var y;
|
|
if (y instanceof UnknownType) {
|
|
}
|