Internal compiler error with dereferencing, Option
, and type ascription
#5597
Labels
bug
Something isn't working
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
This code fails with
Internal compiler error: Verification failed: Struct field type mismatch.
.The reason is that type-checking of dereferencing wrongly removes the type annotation from the
TypeCheckContext
by setting it toTypeInfo::Unknow
instead of passing the expected referenced type as type annotation.The text was updated successfully, but these errors were encountered: