21 lines
1 KiB
Text
21 lines
1 KiB
Text
=== tests/cases/compiler/instanceOfInExternalModules_1.ts ===
|
|
///<reference path='instanceOfInExternalModules_require.ts'/>
|
|
import Bar = require("instanceOfInExternalModules_require");
|
|
>Bar : Symbol(Bar, Decl(instanceOfInExternalModules_1.ts, 0, 0))
|
|
|
|
function IsFoo(value: any): boolean {
|
|
>IsFoo : Symbol(IsFoo, Decl(instanceOfInExternalModules_1.ts, 1, 60))
|
|
>value : Symbol(value, Decl(instanceOfInExternalModules_1.ts, 2, 15))
|
|
|
|
return value instanceof Bar.Foo;
|
|
>value : Symbol(value, Decl(instanceOfInExternalModules_1.ts, 2, 15))
|
|
>Bar.Foo : Symbol(Bar.Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0))
|
|
>Bar : Symbol(Bar, Decl(instanceOfInExternalModules_1.ts, 0, 0))
|
|
>Foo : Symbol(Bar.Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0))
|
|
}
|
|
|
|
=== tests/cases/compiler/instanceOfInExternalModules_require.ts ===
|
|
export class Foo { foo: string; }
|
|
>Foo : Symbol(Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0))
|
|
>foo : Symbol(foo, Decl(instanceOfInExternalModules_require.ts, 0, 18))
|
|
|