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
Revert "ErrorType instead of throwing in match type "no cases""
This reverts commit 9ae1598
Note that the changes in Typer:
```
val unsimplifiedType = result.tpe
simplify(result, pt, locked)
result.tpe.stripTypeVar match
case e: ErrorType if !unsimplifiedType.isErroneous =>
errorTree(xtree, e.msg, xtree.srcPos)
case _ => result
```
cannot be reverted yet since the MatchReducer now also reduces to an `ErrorType` for MatchTypeLegacyPatterns, introduced after 9ae1598.
deftoMessage(usingContext) =em"malformed type: $pre is not a legal prefix for $denot because it contains abstract type member${if (absMembers.size ==1) ""else"s"}${absMembers.mkString(", ")}"
0 commit comments