We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4a118 commit 189973bCopy full SHA for 189973b
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3538,7 +3538,7 @@ object Types {
3538
*
3539
* and `X_1,...X_n` are the type variables bound in `patternType`
3540
*/
3541
- abstract case class MatchType(bound: Type, scrutinee: Type, cases: List[Type]) extends CachedProxyType with TermType {
+ abstract case class MatchType(bound: Type, scrutinee: Type, cases: List[Type]) extends CachedProxyType with ValueType {
3542
3543
def derivedMatchType(bound: Type, scrutinee: Type, cases: List[Type])(implicit ctx: Context) =
3544
if (bound.eq(this.bound) && scrutinee.eq(this.scrutinee) && cases.eqElements(this.cases)) this
0 commit comments