mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +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(''); |