21 lines
488 B
JavaScript
21 lines
488 B
JavaScript
|
//// [taggedTemplateStringsWithManyCallAndMemberExpressions.ts]
|
||
|
interface I {
|
||
|
(strs: string[], ...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;
|
||
|
|
||
|
|
||
|
|
||
|
//// [taggedTemplateStringsWithManyCallAndMemberExpressions.js]
|
||
|
var f;
|
||
|
var x = new new new f "abc" + 0 + "def".member("hello")(42) === true;
|