You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#20372: Check pattern match exhaustivity in inlined code (#20403)
Fixes#20372c0e93f1 previously disabled warnings for pattern matches in Inlined
code, as things like:
```scala
inline def count(inline x: Boolean) = x match
case true => 1
case false => 0
count(true) // inlined to true match {case true => 1; case false => 0 }
```
would throw warnings about unreachable cases, which could have been
confusing to the users. However, in those cases it should be enough to
disallow checks for unreachable cases specifically, and leave
exhaustivity checks intact.
0 commit comments