Closed AntonBogun closed 1 year ago
Ahh.. that's because you're calling it in a way that takes only 1 return value, which then removes the 1
and then afterwards complains about it :)
So not intended?
No, this should compile.
Should be fixed here: https://github.com/aardappel/lobster/commit/76fa822cb297de5791fb907e4950a7ec346b9eef
The following code
results in the error
run.lobster(3): error: `return` requires type `([int], int)`, got `[int]`
However, removing-> [int],int
results in no error and the expected behaviour - printout of[1]
.