Skip to content

Commit aff3b08

Browse files
committed
Fix CI
1 parent 00ee7e2 commit aff3b08

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
466466
case tp @ RefinedType(parent, _, _) =>
467467
erase(parent)
468468
case tref: TypeRef if isPatternTypeSymbol(tref.typeSymbol) =>
469-
if (inArray) tref.underlying else WildcardType(tref.underlying.bounds)
470-
case mt: MethodType =>
471-
mt.derivedLambdaType(mt.paramNames, mt.paramInfos.map(info => erase(info)), erase(mt.resType))
469+
if (inArray) tref.underlying else WildcardType
472470
case _ => tp
473471
}
474472
}

tests/neg-custom-args/isInstanceOf/enum-approx2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sealed trait Exp[T]
22
case class Fun[A, B](f: Exp[A => B]) extends Exp[A => B]
33

44
class Test {
5-
def eval[T](e: Exp[T]) = e match {
5+
def eval[T](e: Exp[T]) = e match { // error
66
case Fun(x: Fun[Int, Double]) => ??? // error
77
case Fun(x: Exp[Int => String]) => ??? // error
88
}

0 commit comments

Comments
 (0)