foo()? test
parent
4c0269597d
commit
439bb0c5de
|
@ -0,0 +1,10 @@
|
|||
fn foo() ?bool {
|
||||
return true
|
||||
}
|
||||
|
||||
fn main() {
|
||||
foo()? // only works in main()
|
||||
println('done')
|
||||
}
|
||||
===output===
|
||||
done
|
Loading…
Reference in New Issue