swc/ecmascript/codegen/tests/fixture/stc/0001/input.ts
강동윤 7fa4e1bea5
fix(es): Fix bugs for the type checker (#1823)
swc_ecma_codegen:
 - Fix codegen of constructor signatures.

swc_ecma_parser:
 - Fix lexing of long numeric literals.
2021-06-13 12:24:30 +09:00

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;