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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
=== tests/cases/conformance/expressions/assignmentOperator/compoundAdditionAssignmentWithInvalidOperands.ts ===
enum E { a, b }
>E : Symbol(E, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 0))
>a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
>b : Symbol(E.b, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 11))
var a: void;
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 3))
var x1: boolean;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
x1 += a;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 3))
x1 += true;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
x1 += 0;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
x1 += E.a;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
>E.a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
>E : Symbol(E, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 0))
>a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
x1 += {};
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
x1 += null;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
x1 += undefined;
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 3))
>undefined : Symbol(undefined)
var x2: {};
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
x2 += a;
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 3))
x2 += true;
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
x2 += 0;
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
x2 += E.a;
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
>E.a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
>E : Symbol(E, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 0))
>a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
x2 += {};
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
x2 += null;
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
x2 += undefined;
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 3))
>undefined : Symbol(undefined)
var x3: void;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
x3 += a;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 3))
x3 += true;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
x3 += 0;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
x3 += E.a;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
>E.a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
>E : Symbol(E, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 0))
>a : Symbol(E.a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 8))
x3 += {};
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
x3 += null;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
x3 += undefined;
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 3))
>undefined : Symbol(undefined)
var x4: number;
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 3))
x4 += a;
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 3))
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 3))
x4 += true;
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 3))
x4 += {};
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 3))
var x5: E;
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 3))
>E : Symbol(E, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 0))
x5 += a;
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 3))
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 3))
x5 += true;
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 3))
x5 += {};
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 3))
|