TypeScript/tests/baselines/reference/interfaceWithCallAndConstructSignature.types
2015-04-13 14:29:37 -07:00

23 lines
795 B
Plaintext

=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithCallAndConstructSignature.ts ===
interface Foo {
>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallAndConstructSignature.ts, 0, 0))
(): number;
new (): any;
}
var f: Foo;
>f : Foo, Symbol(f, Decl(interfaceWithCallAndConstructSignature.ts, 5, 3))
>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallAndConstructSignature.ts, 0, 0))
var r = f();
>r : number, Symbol(r, Decl(interfaceWithCallAndConstructSignature.ts, 6, 3))
>f() : number
>f : Foo, Symbol(f, Decl(interfaceWithCallAndConstructSignature.ts, 5, 3))
var r2 = new f();
>r2 : any, Symbol(r2, Decl(interfaceWithCallAndConstructSignature.ts, 7, 3))
>new f() : any
>f : Foo, Symbol(f, Decl(interfaceWithCallAndConstructSignature.ts, 5, 3))