Skip to content

Commit 024c48b

Browse files
committed
Undo hack
1 parent 388314f commit 024c48b

File tree

1 file changed

+3
-1
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
597597
case tp: RefinedType =>
598598
recur(tp.parent)
599599
case tp: TypeRef =>
600-
(tp.prefix.stripTypeVar == defn.NothingType || recur(tp.prefix)) && !(tp.classSymbol.is(AbstractFinal))
600+
recur(tp.prefix) && !(tp.classSymbol.is(AbstractFinal))
601+
//(tp.prefix.stripTypeVar == defn.NothingType || recur(tp.prefix)) && recur(tp.info.hiBound) && !(tp.classSymbol.is(AbstractFinal))
602+
// (tp.prefix.stripTypeVar == defn.NothingType || recur(tp.prefix)) && !(tp.classSymbol.is(AbstractFinal))
601603
case _ =>
602604
true
603605
}

0 commit comments

Comments
 (0)