Type error within struct reported without actual error line #38531
Labels
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
error messages
Better, more actionable error messages
Reduction from a larger struct in which I was specifying the type of the
nb
field incorrectly:The error line reported is the start of the struct definition, which is only of limited value. As I'm a julia beginner I don't immediately spot these errors within the struct and need to check for the offending line by commenting several fields and rerunning. Would it be possible to report the actual line involved? This is especially useful when structs start to contain many fields.
The text was updated successfully, but these errors were encountered: