Skip to content

Commit 87596cd

Browse files
remove unnecessary cast in transformStatement (#17041)
2 parents 6ad22aa + cf18183 commit 87596cd

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
@@ -4893,7 +4893,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
48934893
case self: ValDef => self
48944894
}
48954895
val body = tree.body.map(transformStatement(_)(tree.symbol))
4896-
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
4896+
ClassDef.copy(tree)(tree.name, constructor, parents, self, body)
48974897
case tree: Import =>
48984898
Import.copy(tree)(transformTerm(tree.expr)(owner), tree.selectors)
48994899
case tree: Export =>

0 commit comments

Comments
 (0)