All assert
s in Quotes
should give helpful error messages
#20946
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
Milestone
Compiler version
main
(3.5.1-RC1-bin-20240628-1efbb92-NIGHTLY
)Minimized example
Comment out the
Ref
expression and uncomment theTypeIdent
one for the second error.Output Error/Warning message
Error 1
Error 2
Why this Error/Warning was not helpful
The assert should provide a useful message about why it failed.
Asserts in
Quotes
that are missing messages:scala3/compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala
Line 475 in 0e60d36
scala3/compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala
Line 1165 in 0e60d36
It might also be useful to check other assert messages if they can be improved.
The text was updated successfully, but these errors were encountered: