Have the compiler return an ICE in the case of a method lookup on an unknown type. #3105
Labels
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
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 isTypeInfo::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)
The text was updated successfully, but these errors were encountered: