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
ErrorType instead of throwing in match type "no cases"
Instead of throwing MatchTypeReductionError, return
ErrorType(MatchTypeNoCases), which is a proper message as well.
This avoids having to catch and ignore it as an exception. But it does
require discovering it from type simplification and reporting it then -
which replaces its reliance on catching TypeErrors.
It also required handling scrutinees that are error types, which
previously would always match the first case, due to FlexType semantics.
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