22 lines
290 B
Text
22 lines
290 B
Text
=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/numberAssignableToEnum.ts ===
|
|
enum E { A }
|
|
>E : E
|
|
>A : E
|
|
|
|
var n: number;
|
|
>n : number
|
|
|
|
var e: E;
|
|
>e : E
|
|
>E : E
|
|
|
|
e = n;
|
|
>e = n : number
|
|
>e : E
|
|
>n : number
|
|
|
|
n = e;
|
|
>n = e : E
|
|
>n : number
|
|
>e : E
|
|
|