File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ class ErasedDecls extends MiniPhase with InfoTransformer {
4040
4141 /* Info transform */
4242
43- override def transformInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type = tp match {
44- case tp : ClassInfo =>
45- if (tp.classSymbol.is(JavaDefined ) || ! tp.decls.iterator.exists(_.is(Erased ))) tp
46- else tp.derivedClassInfo(decls = tp.decls.filteredScope(! _.is(Erased )))
47- case _ => tp
43+ override def transformInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type = {
44+ if (sym.is(JavaDefined ) || sym.is(Scala2x )) tp
45+ else tp match {
46+ case tp : ClassInfo => tp.derivedClassInfo(decls = tp.decls.filteredScope(! _.is(Erased )))
47+ case _ => tp
48+ }
4849 }
4950}
You can’t perform that action at this time.
0 commit comments