We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This used to work before Crystal 0.26
class C def initialize(@abstract : Bool = false, *args, **kwargs) end end func = C.new(abstract: true)
But now it gives an error
Error in line 6: read before assignment to local variable '__temp_270'
https://carc.in/#/r/4ro0
Maybe it shouldn't have worked but this kind of error message will not suffice.
The text was updated successfully, but these errors were encountered:
Don't name the function parameter 'abstract', that causes an error.
9cd4d21
Work around crystal-lang/crystal#6559 Fixes #28
This should work though
def f(abstract internal_name, **kwargs) end f(abstract: true)
Error in line 4: read before assignment to local variable '__temp_269'
Sorry, something went wrong.
Seems like a bug to me, IMO it should possible to use reserved keywords as ivar/property names.
No branches or pull requests
This used to work before Crystal 0.26
But now it gives an error
https://carc.in/#/r/4ro0
Maybe it shouldn't have worked but this kind of error message will not suffice.
The text was updated successfully, but these errors were encountered: