Skip to content

Commit 011e9b0

Browse files
committed
workaround for scala#14821
1 parent 7b50b58 commit 011e9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4723,7 +4723,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
47234723
case self: ValDef => self
47244724
}
47254725
val body = tree.body.map(transformStatement(_)(tree.symbol))
4726-
ClassDef.copy(tree)(tree.name, constructor, parents, self, body)
4726+
ClassDef.copy(tree)(tree.name, constructor.asInstanceOf[DefDef], parents, self, body) // cast as workaround for lampepfl/dotty#14821. TODO remove when referenceVersion >= 3.2.0-RC1
47274727
case tree: Import =>
47284728
Import.copy(tree)(transformTerm(tree.expr)(owner), tree.selectors)
47294729
case tree: Export =>

0 commit comments

Comments
 (0)