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
the line Callback *f = &&(fn void() { }); yields the error:
12: fn void main() {
13: Callback *f = &&(fn void() { });
^^^^^^^^^^^^^^^^^
(/home/user/c3/main.c3:13:17) Error: Implicitly casting 'fn void()*' to 'Callback*' (fn String()*) is not permitted, but you may do an explicit cast by placing '(Callback*)' before the expression.
but it compiles and runs correctly when doing Callback *f = &&((Callback) fn void() { });
The text was updated successfully, but these errors were encountered:
the line
Callback *f = &&(fn void() { });
yields the error:but it compiles and runs correctly when doing
Callback *f = &&((Callback) fn void() { });
The text was updated successfully, but these errors were encountered: