diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/TypedTrees.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypedTrees.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/TypedTrees.scala b/src/dotty/tools/dotc/core/TypedTrees.scala index bd8474355..32ccaeeac 100644 --- a/src/dotty/tools/dotc/core/TypedTrees.scala +++ b/src/dotty/tools/dotc/core/TypedTrees.scala @@ -489,8 +489,8 @@ object TypedTrees { case _ => true } def noLeaksInClass(sym: ClassSymbol): Boolean = - (sym.classInfo.parents forall noLeaksIn) && - (sym.classInfo.decls.toList forall (t => noLeaksIn(t.info))) + (sym.info.parents forall noLeaksIn) && + (sym.decls.toList forall (t => noLeaksIn(t.info))) check(noLeaksIn(tree.tpe)) case If(cond, thenp, elsep) => check(cond.isValue); check(thenp.isValue); check(elsep.isValue) |