foo()? test

pull/2796/head
Alexander Medvednikov 2019-11-18 12:11:25 +03:00
parent 4c0269597d
commit 439bb0c5de
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
fn foo() ?bool {
return true
}
fn main() {
foo()? // only works in main()
println('done')
}
===output===
done