mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
116 lines
6.5 KiB
Plaintext
116 lines
6.5 KiB
Plaintext
//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4ES6.ts] ////
|
|
|
|
=== emitExponentiationOperatorInTempalteString4ES6.ts ===
|
|
var t1 = 10;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
var t2 = 10;
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
|
|
var s;
|
|
>s : Symbol(s, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 2, 3))
|
|
|
|
// With TemplateTail
|
|
`${t1 ** -t2} world`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
|
|
`${(-t1) ** t2 - t1} world`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${(-++t1) ** t2 - t1} world`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${(-t1++) ** t2 - t1} world`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${(~t1) ** t2 ** --t1 } world`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${typeof (t1 ** t2 ** t1) } world`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
// TempateHead & TemplateTail are empt
|
|
`${t1 ** -t2} hello world ${t1 ** -t2}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
|
|
`${(-t1) ** t2 - t1} hello world ${(-t1) ** t2 - t1}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${(-++t1) ** t2 - t1} hello world ${t1 ** (-++t1) **- t1}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${(-t1++) ** t2 - t1} hello world ${t2 ** (-t1++) ** - t1}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${(~t1) ** t2 ** --t1 } hello world ${(~t1) ** t2 ** --t1 }`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`${typeof (t1 ** t2 ** t1)} hello world ${typeof (t1 ** t2 ** t1)}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
// With templateHead
|
|
`hello ${(-t1) ** t2 - t1}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`hello ${(-++t1) ** t2 - t1}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`hello ${(-t1++) ** t2 - t1}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`hello ${(~t1) ** t2 ** --t1 }`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|
|
`hello ${typeof (t1 ** t2 ** t1)}`;
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 1, 3))
|
|
>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4ES6.ts, 0, 3))
|
|
|