Skip to content

Commit f1088e3

Browse files
committed
Hide constructor proxies at PostTyper
Constructor proxies should all have been expanded at Typer. No need to keep them past PostTyper. This is a trial balloon to see whether we can do something similar for capture variable proxies.
1 parent a5a7644 commit f1088e3

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)