Skip to content

Commit bf88e30

Browse files
committed
workaround for scala#14821
1 parent b0a7dbb commit bf88e30

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
@@ -4720,7 +4720,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
47204720
case self: ValDef => self
47214721
}
47224722
val body = tree.body.map(transformStatement(_)(tree.symbol))
4723-
ClassDef.copy(tree)(tree.name, constructor, parents, self, body)
4723+
ClassDef.copy(tree)(tree.name, constructor.asInstanceOf[DefDef], parents, self, body) // cast as workaround for lampepfl/dotty#14821
47244724
case tree: Import =>
47254725
Import.copy(tree)(transformTerm(tree.expr)(owner), tree.selectors)
47264726
case tree: Export =>

0 commit comments

Comments
 (0)