Open enif-lee opened 1 month ago
BTW. E030
seems to be gone on Next (both 3.4.1 and 3.5.0-RC1-bin-20240512-99c4c00-NIGHTLY)
Although the problem remains, otherwise.
Output on 3.4.1:
-- [E121] Pattern Match Warning: /Users/pchabelski/IdeaProjects/scala-cli-tests/compiler-repro/repro.scala:8:9
8 | case _ => print("not match")
| ^
|Unreachable case except for null (if this is intentional, consider writing case null => instead).
1 warning found
Is this issue similar to #20225?
Compiler version
3.3.3
Minimized code
Output
![image](https://github.com/scala/scala3/assets/9916002/dba8e346-3f3b-4a39-a1dd-c1472683407
Expectation
The
case _
is reachable case but The compiler doesn't think so