mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
28 lines
916 B
TypeScript
28 lines
916 B
TypeScript
// @target: es5
|
|
|
|
var t1 = 10;
|
|
var t2 = 10;
|
|
var s;
|
|
|
|
// With templateHead
|
|
`hello ${t1 ** t2}`;
|
|
`hello ${t1 ** t2 ** t1}`;
|
|
`hello ${t1 + t2 ** t1}`;
|
|
`hello ${t1 ** t2 + t1}`;
|
|
`hello ${t1 + t2 ** t2 + t1 }`;
|
|
`hello ${typeof (t1 ** t2 ** t1) }`;
|
|
`hello ${1 + typeof (t1 ** t2 ** t1) }`;
|
|
|
|
`hello ${t1 ** t2}${t1 ** t2}`;
|
|
`hello ${t1 ** t2 ** t1}${t1 ** t2 ** t1}`;
|
|
`hello ${t1 + t2 ** t1}${t1 + t2 ** t1}`;
|
|
`hello ${t1 ** t2 + t1}${t1 ** t2 + t1}`;
|
|
`hello ${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`;
|
|
`hello ${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) }`;
|
|
|
|
`hello ${t1 ** t2} hello world ${t1 ** t2}`;
|
|
`hello ${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`;
|
|
`hello ${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`;
|
|
`hello ${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`;
|
|
`hello ${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`;
|
|
`hello ${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; |