1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
=== tests/cases/conformance/es7/exponentiationOperator/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))
|