Skip to content
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

Have the compiler return an ICE in the case of a method lookup on an unknown type. #3105

Open
emilyaherbert opened this issue Oct 22, 2022 · 0 comments
Labels
compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen

Comments

@emilyaherbert
Copy link
Contributor

When the compiler encounters a method call, it performs a lookup using the type of the argument in the self position and the name of the method. If that type is TypeInfo::Unknown, there will be no methods to be found, because there are no methods implemented for the unknown type. To that end, we should probably have the compiler return an ICE in the case of a method lookup on an unknown type.

Originally posted by @emilyaherbert in #3061 (comment)

@anton-trunov anton-trunov added the compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
Projects
None yet
Development

No branches or pull requests

2 participants