You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
active class Main
def foo(b : bool) : int
if b then
forward (this ! foo(b))
else
return this.foo(b)
end
end
def main() : unit
this.foo(false)
end
end
generates an error at the C compiler stage:
mini_src/Main.encore.c:290:5: error: void function '_enc__method__mini_Main_foo_async' should not
return a value [-Wreturn-type]
return _sync_method_call_3;
^ ~~~~~~~~~~~~~~~~~~~
1 error generated.
*** Compilation failed with exit code 1 ***
The text was updated successfully, but these errors were encountered:
When compiled, the following program
generates an error at the C compiler stage:
The text was updated successfully, but these errors were encountered: