summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index da818e7cea..5c448349cb 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -463,10 +463,10 @@ abstract class RefChecks extends InfoTransform {
})
def ignoreDeferred(member: Symbol) =
- (currentRun.erasurePhase != NoPhase) && ( // the test requires atPhase(erasurePhase.next) so shouldn't be done if the compiler has no erasure phase available
- isAbstractTypeWithoutFBound(member) ||
- (member.isJavaDefined && javaErasedOverridingSym(member) != NoSymbol)
- )
+ isAbstractTypeWithoutFBound(member) ||
+ (member.isJavaDefined &&
+ (currentRun.erasurePhase == NoPhase || // the test requires atPhase(erasurePhase.next) so shouldn't be done if the compiler has no erasure phase available
+ javaErasedOverridingSym(member) != NoSymbol))
// 2. Check that only abstract classes have deferred members
def checkNoAbstractMembers() = {