Exhaustivity warnings not applied to code passed to inline
method
#20372
Labels
area:inline
area:pattern-matching
area:reporting
Error reporting including formatting, implicit suggestions, etc
itype:bug
regression
This worked in a previous version but doesn't anymore
Milestone
Compiler version
3.4.1, 3.4.2-RC1, and the latest nightly 3.5.0-RC1-bin-20240508-b10d64e-NIGHTLY
Minimized code
https://scastie.scala-lang.org/mrdziuban/wkGp5WuMSRuo9JNPKQhLjg/2
Output
None, expected a warning on the
match
indef doesNotHaveWarning
Expectation
The compiler should report an exhaustivity warning in
def doesNotHaveWarning
for the missingcase Baz
The text was updated successfully, but these errors were encountered: