22 lines
328 B
Text
22 lines
328 B
Text
=== 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
|
|
|