2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/instanceOfInExternalModules_1.ts ===
|
|
|
|
///<reference path='instanceOfInExternalModules_require.ts'/>
|
|
|
|
import Bar = require("instanceOfInExternalModules_require");
|
2015-04-13 23:01:57 +02:00
|
|
|
>Bar : typeof Bar, Symbol(Bar, Decl(instanceOfInExternalModules_1.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function IsFoo(value: any): boolean {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IsFoo : (value: any) => boolean, Symbol(IsFoo, Decl(instanceOfInExternalModules_1.ts, 1, 60))
|
|
|
|
>value : any, Symbol(value, Decl(instanceOfInExternalModules_1.ts, 2, 15))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return value instanceof Bar.Foo;
|
|
|
|
>value instanceof Bar.Foo : boolean
|
2015-04-13 23:01:57 +02:00
|
|
|
>value : any, Symbol(value, Decl(instanceOfInExternalModules_1.ts, 2, 15))
|
|
|
|
>Bar.Foo : typeof Bar.Foo, Symbol(Bar.Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0))
|
|
|
|
>Bar : typeof Bar, Symbol(Bar, Decl(instanceOfInExternalModules_1.ts, 0, 0))
|
|
|
|
>Foo : typeof Bar.Foo, Symbol(Bar.Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/instanceOfInExternalModules_require.ts ===
|
|
|
|
export class Foo { foo: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo, Symbol(Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0))
|
|
|
|
>foo : string, Symbol(foo, Decl(instanceOfInExternalModules_require.ts, 0, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|