20 lines
671 B
Text
20 lines
671 B
Text
=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/numberAssignableToEnum.ts ===
|
|
enum E { A }
|
|
>E : Symbol(E, Decl(numberAssignableToEnum.ts, 0, 0))
|
|
>A : Symbol(E.A, Decl(numberAssignableToEnum.ts, 0, 8))
|
|
|
|
var n: number;
|
|
>n : Symbol(n, Decl(numberAssignableToEnum.ts, 1, 3))
|
|
|
|
var e: E;
|
|
>e : Symbol(e, Decl(numberAssignableToEnum.ts, 2, 3))
|
|
>E : Symbol(E, Decl(numberAssignableToEnum.ts, 0, 0))
|
|
|
|
e = n;
|
|
>e : Symbol(e, Decl(numberAssignableToEnum.ts, 2, 3))
|
|
>n : Symbol(n, Decl(numberAssignableToEnum.ts, 1, 3))
|
|
|
|
n = e;
|
|
>n : Symbol(n, Decl(numberAssignableToEnum.ts, 1, 3))
|
|
>e : Symbol(e, Decl(numberAssignableToEnum.ts, 2, 3))
|
|
|