faster deserilitation, super basic enums

This commit is contained in:
Nathan Braswell
2015-08-29 21:45:55 -04:00
parent b198cfb5b2
commit a84e2ee6e1
15 changed files with 134 additions and 60 deletions

16
tests/test_adt.krak Normal file
View 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
}