mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
101 lines
4.2 KiB
Plaintext
101 lines
4.2 KiB
Plaintext
//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithEnum.ts] ////
|
|
|
|
=== exponentiationOperatorWithEnum.ts ===
|
|
// operands of an enum type are treated as having the primitive type Number.
|
|
|
|
enum E {
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
|
|
a,
|
|
>a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
|
|
b
|
|
>b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
}
|
|
|
|
var a: any;
|
|
>a : Symbol(a, Decl(exponentiationOperatorWithEnum.ts, 7, 3))
|
|
|
|
var b: number;
|
|
>b : Symbol(b, Decl(exponentiationOperatorWithEnum.ts, 8, 3))
|
|
|
|
var c: E;
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
|
|
// operator **
|
|
var r1 = c ** a;
|
|
>r1 : Symbol(r1, Decl(exponentiationOperatorWithEnum.ts, 12, 3))
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
>a : Symbol(a, Decl(exponentiationOperatorWithEnum.ts, 7, 3))
|
|
|
|
var r2 = c ** b;
|
|
>r2 : Symbol(r2, Decl(exponentiationOperatorWithEnum.ts, 13, 3))
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
>b : Symbol(b, Decl(exponentiationOperatorWithEnum.ts, 8, 3))
|
|
|
|
var r3 = c ** c;
|
|
>r3 : Symbol(r3, Decl(exponentiationOperatorWithEnum.ts, 14, 3))
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
|
|
var r4 = a ** c;
|
|
>r4 : Symbol(r4, Decl(exponentiationOperatorWithEnum.ts, 15, 3))
|
|
>a : Symbol(a, Decl(exponentiationOperatorWithEnum.ts, 7, 3))
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
|
|
var r5 = b ** c;
|
|
>r5 : Symbol(r5, Decl(exponentiationOperatorWithEnum.ts, 16, 3))
|
|
>b : Symbol(b, Decl(exponentiationOperatorWithEnum.ts, 8, 3))
|
|
>c : Symbol(c, Decl(exponentiationOperatorWithEnum.ts, 9, 3))
|
|
|
|
var r6 = E.a ** a;
|
|
>r6 : Symbol(r6, Decl(exponentiationOperatorWithEnum.ts, 17, 3))
|
|
>E.a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>a : Symbol(a, Decl(exponentiationOperatorWithEnum.ts, 7, 3))
|
|
|
|
var r7 = E.a ** b;
|
|
>r7 : Symbol(r7, Decl(exponentiationOperatorWithEnum.ts, 18, 3))
|
|
>E.a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>b : Symbol(b, Decl(exponentiationOperatorWithEnum.ts, 8, 3))
|
|
|
|
var r8 = E.a ** E.b;
|
|
>r8 : Symbol(r8, Decl(exponentiationOperatorWithEnum.ts, 19, 3))
|
|
>E.a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>E.b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
|
|
var r9 = E.a ** 1;
|
|
>r9 : Symbol(r9, Decl(exponentiationOperatorWithEnum.ts, 20, 3))
|
|
>E.a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(exponentiationOperatorWithEnum.ts, 2, 8))
|
|
|
|
var r10 = a ** E.b;
|
|
>r10 : Symbol(r10, Decl(exponentiationOperatorWithEnum.ts, 21, 3))
|
|
>a : Symbol(a, Decl(exponentiationOperatorWithEnum.ts, 7, 3))
|
|
>E.b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
|
|
var r11 = b ** E.b;
|
|
>r11 : Symbol(r11, Decl(exponentiationOperatorWithEnum.ts, 22, 3))
|
|
>b : Symbol(b, Decl(exponentiationOperatorWithEnum.ts, 8, 3))
|
|
>E.b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
|
|
var r12 = 1 ** E.b;
|
|
>r12 : Symbol(r12, Decl(exponentiationOperatorWithEnum.ts, 23, 3))
|
|
>E.b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
>E : Symbol(E, Decl(exponentiationOperatorWithEnum.ts, 0, 0))
|
|
>b : Symbol(E.b, Decl(exponentiationOperatorWithEnum.ts, 3, 6))
|
|
|