Skip to content

Commit

Permalink
workaround for scala#14821
Browse files Browse the repository at this point in the history
  • Loading branch information
griggt committed Apr 7, 2022
1 parent b0a7dbb commit bf88e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/scala/quoted/Quotes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4720,7 +4720,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
case self: ValDef => self
}
val body = tree.body.map(transformStatement(_)(tree.symbol))
ClassDef.copy(tree)(tree.name, constructor, parents, self, body)
ClassDef.copy(tree)(tree.name, constructor.asInstanceOf[DefDef], parents, self, body) // cast as workaround for lampepfl/dotty#14821
case tree: Import =>
Import.copy(tree)(transformTerm(tree.expr)(owner), tree.selectors)
case tree: Export =>
Expand Down

0 comments on commit bf88e30

Please sign in to comment.