23 lines
328 B
Plaintext
23 lines
328 B
Plaintext
|
=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithCallAndConstructSignature.ts ===
|
||
|
interface Foo {
|
||
|
>Foo : Foo
|
||
|
|
||
|
(): number;
|
||
|
new (): any;
|
||
|
}
|
||
|
|
||
|
var f: Foo;
|
||
|
>f : Foo
|
||
|
>Foo : Foo
|
||
|
|
||
|
var r = f();
|
||
|
>r : number
|
||
|
>f() : number
|
||
|
>f : Foo
|
||
|
|
||
|
var r2 = new f();
|
||
|
>r2 : any
|
||
|
>new f() : any
|
||
|
>f : Foo
|
||
|
|