Skip to content

Commit 6d61140

Browse files
committed
Restore constructor pattern
1 parent 8808683 commit 6d61140

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,8 @@ class QuoteMatcher(debug: Boolean) {
464464
else
465465
val td = if i == 0 then sctypedef else pttypedef
466466
td.rhs match
467-
case tbt: TypeBoundsTree
468-
if tbt.lo.tpe.isNothingType && tbt.hi.tpe.isAny && tbt.alias.isEmpty
469-
=> recur(i + 1)
467+
case TypeBoundsTree(lo, hi, alias @ EmptyTree) if lo.tpe.isNothingType && hi.tpe.isAny =>
468+
recur(i + 1)
470469
case _ => notMatched
471470
recur(i = 0)
472471

0 commit comments

Comments
 (0)