mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
44 lines
482 B
TypeScript
44 lines
482 B
TypeScript
enum T1 {
|
|
a = `1`
|
|
}
|
|
|
|
enum T2 {
|
|
a = `1`,
|
|
b = "2",
|
|
c = 3
|
|
}
|
|
|
|
enum T3 {
|
|
a = `1` + `1`
|
|
}
|
|
|
|
enum T4 {
|
|
a = `1`,
|
|
b = `1` + `1`,
|
|
c = `1` + "2",
|
|
d = "2" + `1`,
|
|
e = "2" + `1` + `1`
|
|
}
|
|
|
|
enum T5 {
|
|
a = `1`,
|
|
b = `1` + `2`,
|
|
c = `1` + `2` + `3`,
|
|
d = 1,
|
|
e = `1` - `1`,
|
|
f = `1` + 1,
|
|
g = `1${"2"}3`,
|
|
h = `1`.length
|
|
}
|
|
|
|
enum T6 {
|
|
a = 1,
|
|
b = `12`.length
|
|
}
|
|
|
|
declare enum T7 {
|
|
a = `1`,
|
|
b = `1` + `1`,
|
|
c = "2" + `1`
|
|
}
|