mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
13 lines
186 B
TypeScript
13 lines
186 B
TypeScript
|
interface Foo {
|
||
|
(): number;
|
||
|
(x: string): number;
|
||
|
|
||
|
new (): any;
|
||
|
new (x: string): Object;
|
||
|
}
|
||
|
|
||
|
var f: Foo;
|
||
|
var r1 = f();
|
||
|
var r2 = f('');
|
||
|
var r3 = new f();
|
||
|
var r4 = new f('');
|