From 2bfb2e6de12a7cecd2f67a52ce5f8fe079b7ac5e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 30 Jan 2012 12:00:50 -0800 Subject: Eliminated 2500 lines of whitespace changes. --- src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala') diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index d492ba3662..4449116fd1 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -686,13 +686,13 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R } else if (clazz.isTrait) { // prevent abstract methods in interfaces that override final members in Object; see #4431 if (!(clazz isSubClass AnyValClass)) { - for (decl <- clazz.info.decls.iterator) { - val overridden = decl.overriddenSymbol(ObjectClass) - if (overridden.isFinal) - unit.error(decl.pos, "trait cannot redefine final method from class AnyRef") - } + for (decl <- clazz.info.decls.iterator) { + val overridden = decl.overriddenSymbol(ObjectClass) + if (overridden.isFinal) + unit.error(decl.pos, "trait cannot redefine final method from class AnyRef") } } + } /** Returns whether there is a symbol declared in class `inclazz` * (which must be different from `clazz`) whose name and type -- cgit v1.2.3