mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
7fa4e1bea5
swc_ecma_codegen: - Fix codegen of constructor signatures. swc_ecma_parser: - Fix lexing of long numeric literals.
15 lines
281 B
TypeScript
15 lines
281 B
TypeScript
interface I {
|
|
(strs: TemplateStringsArray, ...subs: number[]): I;
|
|
member: {
|
|
new(s: string): {
|
|
new(n: number): {
|
|
new(): boolean;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
var f: I;
|
|
|
|
var x = new new new f`abc${0}def`.member("hello")(42) === true;
|
|
|