|
| 1 | +=== tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts === |
| 2 | +// Originated from #38558 |
| 3 | + |
| 4 | +const f = _ => (..._) => ""; |
| 5 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 6 | +>_ : Symbol(_, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 9)) |
| 7 | +>_ : Symbol(_, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 16)) |
| 8 | + |
| 9 | +f({ ...{ x: 0 } })``; |
| 10 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 11 | +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 4, 8)) |
| 12 | + |
| 13 | +f({ ...{ x: 0 } })`x`; |
| 14 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 15 | +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 5, 8)) |
| 16 | + |
| 17 | +f({ ...{ x: 0 } })`x${f}x`; |
| 18 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 19 | +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 6, 8)) |
| 20 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 21 | + |
| 22 | +f({ ...{ x: 0 }, y: (() => 1)() })``; |
| 23 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 24 | +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 7, 8)) |
| 25 | +>y : Symbol(y, Decl(taggedTemplateStringsWithCurriedFunction.ts, 7, 16)) |
| 26 | + |
| 27 | +f({ x: (() => 1)(), ...{ y: 1 } })``; |
| 28 | +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) |
| 29 | +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 8, 3)) |
| 30 | +>y : Symbol(y, Decl(taggedTemplateStringsWithCurriedFunction.ts, 8, 24)) |
| 31 | + |
0 commit comments