mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
504 B
Plaintext
14 lines
504 B
Plaintext
//// [tests/cases/compiler/errorHandlingInInstanceOf.ts] ////
|
|
|
|
=== errorHandlingInInstanceOf.ts ===
|
|
if (x instanceof String) {
|
|
>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more)
|
|
}
|
|
|
|
var y: any;
|
|
>y : Symbol(y, Decl(errorHandlingInInstanceOf.ts, 3, 3))
|
|
|
|
if (y instanceof UnknownType) {
|
|
>y : Symbol(y, Decl(errorHandlingInInstanceOf.ts, 3, 3))
|
|
}
|