-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
Codegen fails if instance var has no type defined #1
Comments
I tried to write the Lexer and has the same probelm. I fixed it (didn't commit it) by doing this: when looking up an instance variable for read-access, if it doesn't have a type, assign it the Nil type. I think this can work, but to make it better we should bind it to a fictitious variable that has Nil type, so that when you assign it a value it becomes a union of Nil and that value's type. What do you think? |
fix src to be able to build the compiler (in linux)
Related to crystal-lang#1
Related to crystal-lang#1
Example:
The text was updated successfully, but these errors were encountered: