mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
192 lines
7.4 KiB
Plaintext
192 lines
7.4 KiB
Plaintext
//// [tests/cases/conformance/expressions/assignmentOperator/compoundArithmeticAssignmentWithInvalidOperands.ts] ////
|
|
|
|
=== compoundArithmeticAssignmentWithInvalidOperands.ts ===
|
|
enum E { a, b }
|
|
>E : Symbol(E, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
>b : Symbol(E.b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 11))
|
|
|
|
declare var a: any;
|
|
>a : Symbol(a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
declare var b: void;
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
declare var x1: boolean;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
|
|
x1 *= a;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
>a : Symbol(a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x1 *= b;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
x1 *= true;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
|
|
x1 *= 0;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
|
|
x1 *= ''
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
|
|
x1 *= E.a;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
>E.a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
>E : Symbol(E, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
|
|
x1 *= {};
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
|
|
x1 *= null;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
|
|
x1 *= undefined;
|
|
>x1 : Symbol(x1, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 5, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x2: string;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
|
|
x2 *= a;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
>a : Symbol(a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x2 *= b;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
x2 *= true;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
|
|
x2 *= 0;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
|
|
x2 *= ''
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
|
|
x2 *= E.a;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
>E.a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
>E : Symbol(E, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
|
|
x2 *= {};
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
|
|
x2 *= null;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
|
|
x2 *= undefined;
|
|
>x2 : Symbol(x2, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 16, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x3: {};
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
|
|
x3 *= a;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
>a : Symbol(a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x3 *= b;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
x3 *= true;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
|
|
x3 *= 0;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
|
|
x3 *= ''
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
|
|
x3 *= E.a;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
>E.a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
>E : Symbol(E, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
|
|
x3 *= {};
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
|
|
x3 *= null;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
|
|
x3 *= undefined;
|
|
>x3 : Symbol(x3, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 27, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x4: void;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
|
|
x4 *= a;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
>a : Symbol(a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 2, 11))
|
|
|
|
x4 *= b;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
x4 *= true;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
|
|
x4 *= 0;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
|
|
x4 *= ''
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
|
|
x4 *= E.a;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
>E.a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
>E : Symbol(E, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 0))
|
|
>a : Symbol(E.a, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 8))
|
|
|
|
x4 *= {};
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
|
|
x4 *= null;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
|
|
x4 *= undefined;
|
|
>x4 : Symbol(x4, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 38, 11))
|
|
>undefined : Symbol(undefined)
|
|
|
|
declare var x5: number;
|
|
>x5 : Symbol(x5, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 49, 11))
|
|
|
|
x5 *= b;
|
|
>x5 : Symbol(x5, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 49, 11))
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
x5 *= true;
|
|
>x5 : Symbol(x5, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 49, 11))
|
|
|
|
x5 *= ''
|
|
>x5 : Symbol(x5, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 49, 11))
|
|
|
|
x5 *= {};
|
|
>x5 : Symbol(x5, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 49, 11))
|
|
|
|
declare var x6: E;
|
|
>x6 : Symbol(x6, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 55, 11))
|
|
>E : Symbol(E, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 0, 0))
|
|
|
|
x6 *= b;
|
|
>x6 : Symbol(x6, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 55, 11))
|
|
>b : Symbol(b, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 3, 11))
|
|
|
|
x6 *= true;
|
|
>x6 : Symbol(x6, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 55, 11))
|
|
|
|
x6 *= ''
|
|
>x6 : Symbol(x6, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 55, 11))
|
|
|
|
x6 *= {};
|
|
>x6 : Symbol(x6, Decl(compoundArithmeticAssignmentWithInvalidOperands.ts, 55, 11))
|
|
|