faster deserilitation, super basic enums
This commit is contained in:
16
tests/test_adt.krak
Normal file
16
tests/test_adt.krak
Normal file
@@ -0,0 +1,16 @@
|
||||
import io:*
|
||||
|
||||
adt options {
|
||||
option0,
|
||||
option1
|
||||
}
|
||||
|
||||
fun main():int {
|
||||
var it: options = options::option1
|
||||
if (it == options::option0)
|
||||
println("nope")
|
||||
if (it == options::option1)
|
||||
println("option1")
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user