Open sophiajt opened 1 year ago
we should have a cursed
label for such a thing :eyes: :laughing:
Should it be an error or expected behavior for now?
Should it be an error or expected behavior for now?
i'd say the
{...}
is not a closure, but it's a block that allows mutations. so it should give a syntax error :thinking:
@WindSoilder - it should be an error to put the params on a def
like that.
Describe the bug
def foo [] { |x: int| 3 }
This should not parse as it's incorrect syntax for
def
How to reproduce
Expected behavior
This should error
Screenshots
No response
Configuration
Additional context
No response