mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
14 lines
203 B
TypeScript
14 lines
203 B
TypeScript
interface Foo {
|
|
(x: 'a'): number;
|
|
(x: string): any;
|
|
|
|
new (x: 'a'): any;
|
|
new (x: string): Object;
|
|
}
|
|
|
|
var f: Foo;
|
|
var r = f('a');
|
|
var r2 = f('A');
|
|
var r3 = new f('a');
|
|
var r4 = new f('A');
|