mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +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; |