2015-08-29 21:45:55 -04:00
|
|
|
import io:*
|
|
|
|
|
|
|
|
|
|
adt options {
|
|
|
|
|
option0,
|
|
|
|
|
option1
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-30 01:53:11 -04:00
|
|
|
fun can_pass(it: options): options {
|
|
|
|
|
return options::option1
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-29 21:45:55 -04:00
|
|
|
fun main():int {
|
2015-08-30 01:53:11 -04:00
|
|
|
var it: options = can_pass(options::option0)
|
2015-08-29 21:45:55 -04:00
|
|
|
if (it == options::option0)
|
|
|
|
|
println("nope")
|
|
|
|
|
if (it == options::option1)
|
|
|
|
|
println("option1")
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|