Skip to content

Commit ef37ebf

Browse files
authored
Hide constructor proxies at PostTyper (#23269)
Constructor proxies should all have been expanded at Typer. No need to keep them past PostTyper.
2 parents 457a463 + f1088e3 commit ef37ebf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ class PostTyper extends MacroTransform with InfoTransformer { thisPhase =>
704704
case _ =>
705705
if parents1 ne info.parents then info.derivedClassInfo(declaredParents = parents1)
706706
else tp
707+
case _ if sym.is(ConstructorProxy) => NoType
707708
case _ => tp
708709

709710
private def argTypeOfCaseClassThatNeedsAbstractFunction1(sym: Symbol)(using Context): Option[List[Type]] =

0 commit comments

Comments
 (0)