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
Showing last frame. Use --error-trace for full trace.
error in line 6
Error: 'Crystal.main' is expected to be invoked with a block, but no block was given
The example described in
Crystal.main(Int32, UInt8**)
does not work because there isCrystal.main(&)
.https://play.crystal-lang.org/#/r/9kk9
I have also confirmed this with master:
Workaround
Using wrapped
Proc
can avoid this error.https://play.crystal-lang.org/#/r/9kkh
The text was updated successfully, but these errors were encountered: