File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ class BTypesFromSymbols[I <: DottyBackendInterface](val int: I) extends BTypes {
214
214
private def definedClasses (sym : Symbol , phase : Phase ) =
215
215
if (sym.isDefinedInCurrentRun)
216
216
atPhase(phase) {
217
- toDenot(sym).info.decls.filter(_ .isClass)
217
+ toDenot(sym).info.decls.filter(sym => sym .isClass && ! sym.isEffectivelyErased )
218
218
}
219
219
else Nil
220
220
Original file line number Diff line number Diff line change @@ -1048,8 +1048,6 @@ object Erasure {
1048
1048
cls.linkedClass.copySymDenotation(initFlags = EmptyFlags , info = NoType )
1049
1049
.installAfter(erasurePhase)
1050
1050
cls.registeredCompanion = NoSymbol
1051
- for mbr <- cls.info.decls do
1052
- if mbr.is(ConstructorProxy ) then mbr.dropAfter(erasurePhase)
1053
1051
1054
1052
override def typedClassDef (cdef : untpd.TypeDef , cls : ClassSymbol )(using Context ): Tree =
1055
1053
if cls.is(Flags .Erased ) then erasedDef(cls)
Original file line number Diff line number Diff line change @@ -446,8 +446,7 @@ class TreeChecker extends Phase with SymTransformer {
446
446
val decls = cls.classInfo.decls.toList.toSet.filter(isNonMagicalMember)
447
447
val defined = impl.body.map(_.symbol)
448
448
449
- def isAllowed (sym : Symbol ): Boolean =
450
- sym.is(ConstructorProxy ) && ! ctx.phase.erasedTypes
449
+ def isAllowed (sym : Symbol ): Boolean = sym.is(ConstructorProxy )
451
450
452
451
val symbolsNotDefined = (decls -- defined - constr.symbol).filterNot(isAllowed)
453
452
You can’t perform that action at this time.
0 commit comments