autofree: ?string test
parent
03327e5161
commit
67cc515e74
|
@ -59,6 +59,16 @@ fn match_expr() string {
|
|||
return res
|
||||
}
|
||||
|
||||
fn optional_str() {
|
||||
q := 'select'
|
||||
s := 'x'
|
||||
pos := s.index('query: $q') or {
|
||||
println('exiting')
|
||||
return
|
||||
}
|
||||
println(pos)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println('start')
|
||||
foo()
|
||||
|
|
Loading…
Reference in New Issue