mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
24 lines
330 B
TypeScript
24 lines
330 B
TypeScript
enum E { a, b }
|
|
enum F { c, d }
|
|
|
|
var a: number;
|
|
var b: E;
|
|
var c: E | F;
|
|
|
|
var r1 = a + a;
|
|
var r2 = a + b;
|
|
var r3 = b + a;
|
|
var r4 = b + b;
|
|
|
|
var r5 = 0 + a;
|
|
var r6 = E.a + 0;
|
|
var r7 = E.a + E.b;
|
|
var r8 = E['a'] + E['b'];
|
|
var r9 = E['a'] + F['c'];
|
|
|
|
var r10 = a + c;
|
|
var r11 = c + a;
|
|
var r12 = b + c;
|
|
var r13 = c + b;
|
|
var r14 = c + c;
|