Skip to content

Commit 9101225

Browse files
authored
Merge pull request #20 from dotty-staging/fix-nullary
fix nullary method applications
2 parents fd40234 + 50d2b4d commit 9101225

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/scala/tools/nsc/backend/jvm/BCodeBodyBuilder.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,10 +1295,10 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
12951295
else if (ScalaPrimitivesOps.isComparisonOp(code))
12961296
genComparisonOp(lhs, rhs, code)
12971297
else
1298-
default
1298+
default()
12991299
}
13001300

1301-
case _ => default
1301+
case _ => default()
13021302
}
13031303

13041304
} // end of genCond()

src/compiler/scala/tools/nsc/backend/jvm/BCodeIdiomatic.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ trait BCodeIdiomatic {
417417
// can-multi-thread
418418
final def goTo(label: asm.Label): Unit = { jmethod.visitJumpInsn(Opcodes.GOTO, label) }
419419
// can-multi-thread
420-
final def emitIF(cond: TestOp, label: asm.Label): Unit = { jmethod.visitJumpInsn(cond.opcodeIF, label) }
420+
final def emitIF(cond: TestOp, label: asm.Label): Unit = { jmethod.visitJumpInsn(cond.opcodeIF(), label) }
421421
// can-multi-thread
422-
final def emitIF_ICMP(cond: TestOp, label: asm.Label): Unit = { jmethod.visitJumpInsn(cond.opcodeIFICMP, label) }
422+
final def emitIF_ICMP(cond: TestOp, label: asm.Label): Unit = { jmethod.visitJumpInsn(cond.opcodeIFICMP(), label) }
423423
// can-multi-thread
424424
final def emitIF_ACMP(cond: TestOp, label: asm.Label): Unit = {
425425
assert((cond == EQ) || (cond == NE), cond)

0 commit comments

Comments
 (0)