mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
22 lines
161 B
TypeScript
22 lines
161 B
TypeScript
|
enum E {
|
||
|
A,
|
||
|
B
|
||
|
}
|
||
|
|
||
|
enum E2 {
|
||
|
A,
|
||
|
B
|
||
|
}
|
||
|
|
||
|
var e: E;
|
||
|
var e2: E2;
|
||
|
|
||
|
e = E2.A;
|
||
|
e2 = E.A;
|
||
|
e = <void>null;
|
||
|
e = {};
|
||
|
e = '';
|
||
|
|
||
|
function f<T>(a: T) {
|
||
|
e = a;
|
||
|
}
|