This commit is contained in:
Felipe Pena 2025-08-06 11:23:53 -03:00
parent c3dc07520e
commit 3f9f848783
2 changed files with 14 additions and 0 deletions

View file

@ -519,6 +519,7 @@ fn (mut w Walker) expr(node_ ast.Expr) {
if node.is_expr {
w.fn_by_name('free')
}
w.mark_by_type(w.table.find_or_register_thread(node.call_expr.return_type))
w.expr(node.call_expr)
w.uses_spawn = true

View file

@ -0,0 +1,13 @@
fn f() ! {
println('hi')
}
fn g() int {
println('hi')
return 23
}
fn test_main() {
_ = go f()
_ := spawn g()
}