mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
26 lines
192 B
TypeScript
26 lines
192 B
TypeScript
enum E {
|
|
A,
|
|
B
|
|
}
|
|
|
|
var n: number;
|
|
var a: any;
|
|
var e: E;
|
|
|
|
n = e;
|
|
n = E.A;
|
|
|
|
a = n;
|
|
a = e;
|
|
a = E.A;
|
|
|
|
e = e;
|
|
e = E.A;
|
|
e = E.B;
|
|
e = n;
|
|
e = null;
|
|
e = undefined;
|
|
e = 1;
|
|
e = 1.;
|
|
e = 1.0;
|
|
e = -1; |