Skip to content

Commit f8764b6

Browse files
committed
Fix failing tests due to a bug in QuotePatterns::checkPattern
1 parent ee4c245 commit f8764b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/quoted/QuotePatterns.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object QuotePatterns:
3535
case TypeDefs(tdefs) => tdefs.map(_.symbol)
3636
case _ => List.empty
3737
}.toSet
38-
foldOver(typevars union newTypevars, tree.rhs)
38+
foldOver(typevars union newTypevars, tree)
3939
case tdef: TypeDef if tdef.symbol.isClass =>
4040
val kind = if tdef.symbol.is(Module) then "objects" else "classes"
4141
report.error(em"Implementation restriction: cannot match $kind", tree.srcPos)

0 commit comments

Comments
 (0)