mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
126 lines
4.8 KiB
Plaintext
126 lines
4.8 KiB
Plaintext
//// [tests/cases/conformance/expressions/assignmentOperator/compoundAdditionAssignmentWithInvalidOperands.ts] ////
|
|
|
|
=== 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))
|
|
|
|
declare var a: void;
|
|
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
declare var x1: boolean;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
|
|
x1 += a;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x1 += true;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
|
|
x1 += 0;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
|
|
x1 += E.a;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
>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, 11))
|
|
|
|
x1 += null;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
|
|
x1 += undefined;
|
|
>x1 : Symbol(x1, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 4, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x2: {};
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
|
|
x2 += a;
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x2 += true;
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
|
|
x2 += 0;
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
|
|
x2 += E.a;
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
>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, 11))
|
|
|
|
x2 += null;
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
|
|
x2 += undefined;
|
|
>x2 : Symbol(x2, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 13, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x3: void;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
|
|
x3 += a;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x3 += true;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
|
|
x3 += 0;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
|
|
x3 += E.a;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
>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, 11))
|
|
|
|
x3 += null;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
|
|
x3 += undefined;
|
|
>x3 : Symbol(x3, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 22, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x4: number;
|
|
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 11))
|
|
|
|
x4 += a;
|
|
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 11))
|
|
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x4 += true;
|
|
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 11))
|
|
|
|
x4 += {};
|
|
>x4 : Symbol(x4, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 31, 11))
|
|
|
|
declare var x5: E;
|
|
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 11))
|
|
>E : Symbol(E, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 0, 0))
|
|
|
|
x5 += a;
|
|
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 11))
|
|
>a : Symbol(a, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x5 += true;
|
|
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 11))
|
|
|
|
x5 += {};
|
|
>x5 : Symbol(x5, Decl(compoundAdditionAssignmentWithInvalidOperands.ts, 36, 11))
|
|
|