84 lines
2.4 KiB
Text
84 lines
2.4 KiB
Text
=== tests/cases/conformance/types/primitives/enum/validEnumAssignments.ts ===
|
|
enum E {
|
|
>E : Symbol(E, Decl(validEnumAssignments.ts, 0, 0))
|
|
|
|
A,
|
|
>A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
|
|
B
|
|
>B : Symbol(E.B, Decl(validEnumAssignments.ts, 1, 6))
|
|
}
|
|
|
|
var n: number;
|
|
>n : Symbol(n, Decl(validEnumAssignments.ts, 5, 3))
|
|
|
|
var a: any;
|
|
>a : Symbol(a, Decl(validEnumAssignments.ts, 6, 3))
|
|
|
|
var e: E;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
>E : Symbol(E, Decl(validEnumAssignments.ts, 0, 0))
|
|
|
|
n = e;
|
|
>n : Symbol(n, Decl(validEnumAssignments.ts, 5, 3))
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
n = E.A;
|
|
>n : Symbol(n, Decl(validEnumAssignments.ts, 5, 3))
|
|
>E.A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
>E : Symbol(E, Decl(validEnumAssignments.ts, 0, 0))
|
|
>A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
|
|
a = n;
|
|
>a : Symbol(a, Decl(validEnumAssignments.ts, 6, 3))
|
|
>n : Symbol(n, Decl(validEnumAssignments.ts, 5, 3))
|
|
|
|
a = e;
|
|
>a : Symbol(a, Decl(validEnumAssignments.ts, 6, 3))
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
a = E.A;
|
|
>a : Symbol(a, Decl(validEnumAssignments.ts, 6, 3))
|
|
>E.A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
>E : Symbol(E, Decl(validEnumAssignments.ts, 0, 0))
|
|
>A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
|
|
e = e;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
e = E.A;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
>E.A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
>E : Symbol(E, Decl(validEnumAssignments.ts, 0, 0))
|
|
>A : Symbol(E.A, Decl(validEnumAssignments.ts, 0, 8))
|
|
|
|
e = E.B;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
>E.B : Symbol(E.B, Decl(validEnumAssignments.ts, 1, 6))
|
|
>E : Symbol(E, Decl(validEnumAssignments.ts, 0, 0))
|
|
>B : Symbol(E.B, Decl(validEnumAssignments.ts, 1, 6))
|
|
|
|
e = n;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
>n : Symbol(n, Decl(validEnumAssignments.ts, 5, 3))
|
|
|
|
e = null;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
e = undefined;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
>undefined : Symbol(undefined)
|
|
|
|
e = 1;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
e = 1.;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
e = 1.0;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|
|
e = -1;
|
|
>e : Symbol(e, Decl(validEnumAssignments.ts, 7, 3))
|
|
|