mers/enums.txt

10 lines
196 B
Plaintext
Raw Normal View History

2023-04-01 16:29:46 +02:00
x = if true enum_b: enum_a: "hello" else "world"
x.debug()
switch! x {
string {
println("no enum")
x.println()
}
enum_b(enum_a(string)) x.noenum().noenum().println()
}