under future, refutable patterns in "for" do not suggest to use "case" #18622
Labels
area:pattern-matching
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
under
-source:future
, a refutable pattern in a for comprehension only produces the standard "match may not be exhaustive" error.Compiler version
3.3.1
Minimized code
Output
Expectation
It would be good to remind the user that they can use
case
in front of the pattern, which will introduce the call towithFilter
The text was updated successfully, but these errors were encountered: