faster deserilitation, super basic enums

This commit is contained in:
Nathan Braswell committed 2015-08-29 21:45:55 -04:00
1 parent b198cfb5b2
commit a84e2ee6e1
15 files changed
+134 -60

No files matched your search

+1
View File
@@ -0,0 +1 @@
option1
+16
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
}