102 lines
1.2 KiB
Text
102 lines
1.2 KiB
Text
=== tests/cases/conformance/expressions/assignmentOperator/compoundArithmeticAssignmentLHSCanBeAssigned.ts ===
|
|
enum E { a, b, c }
|
|
>E : E
|
|
>a : E
|
|
>b : E
|
|
>c : E
|
|
|
|
var a: any;
|
|
>a : any
|
|
|
|
var b: number;
|
|
>b : number
|
|
|
|
var c: E;
|
|
>c : E
|
|
>E : E
|
|
|
|
var x1: any;
|
|
>x1 : any
|
|
|
|
x1 *= a;
|
|
>x1 *= a : number
|
|
>x1 : any
|
|
>a : any
|
|
|
|
x1 *= b;
|
|
>x1 *= b : number
|
|
>x1 : any
|
|
>b : number
|
|
|
|
x1 *= c;
|
|
>x1 *= c : number
|
|
>x1 : any
|
|
>c : E
|
|
|
|
x1 *= null;
|
|
>x1 *= null : number
|
|
>x1 : any
|
|
>null : null
|
|
|
|
x1 *= undefined;
|
|
>x1 *= undefined : number
|
|
>x1 : any
|
|
>undefined : undefined
|
|
|
|
var x2: number;
|
|
>x2 : number
|
|
|
|
x2 *= a;
|
|
>x2 *= a : number
|
|
>x2 : number
|
|
>a : any
|
|
|
|
x2 *= b;
|
|
>x2 *= b : number
|
|
>x2 : number
|
|
>b : number
|
|
|
|
x2 *= c;
|
|
>x2 *= c : number
|
|
>x2 : number
|
|
>c : E
|
|
|
|
x2 *= null;
|
|
>x2 *= null : number
|
|
>x2 : number
|
|
>null : null
|
|
|
|
x2 *= undefined;
|
|
>x2 *= undefined : number
|
|
>x2 : number
|
|
>undefined : undefined
|
|
|
|
var x3: E;
|
|
>x3 : E
|
|
>E : E
|
|
|
|
x3 *= a;
|
|
>x3 *= a : number
|
|
>x3 : E
|
|
>a : any
|
|
|
|
x3 *= b;
|
|
>x3 *= b : number
|
|
>x3 : E
|
|
>b : number
|
|
|
|
x3 *= c;
|
|
>x3 *= c : number
|
|
>x3 : E
|
|
>c : E
|
|
|
|
x3 *= null;
|
|
>x3 *= null : number
|
|
>x3 : E
|
|
>null : null
|
|
|
|
x3 *= undefined;
|
|
>x3 *= undefined : number
|
|
>x3 : E
|
|
>undefined : undefined
|
|
|