Skip to content

Commit 29a561b

Browse files
committed
Adapt the expect result in ByteCodeTests.
1 parent d990e64 commit 29a561b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/test/dotty/tools/backend/jvm/DottyBytecodeTests.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,7 @@ class TestBCode extends DottyBytecodeTest {
856856
checkBCode(List(invocationReceiversTestCode.definitions("Object"))) { dir =>
857857
val c1 = loadClassNode(dir.lookupName("C1.class", directory = false).input)
858858
val c2 = loadClassNode(dir.lookupName("C2.class", directory = false).input)
859-
// Scala 2 uses "invokestatic T.clone$" here, see https://github.com/lampepfl/dotty/issues/5928
860-
assertSameCode(getMethod(c1, "clone"), List(VarOp(ALOAD, 0), Invoke(INVOKESPECIAL, "T", "clone", "()Ljava/lang/Object;", true), Op(ARETURN)))
859+
assertSameCode(getMethod(c1, "clone"), List(VarOp(ALOAD, 0), Invoke(INVOKESTATIC, "T", "clone$", "(LT;)Ljava/lang/Object;", true), Op(ARETURN)))
861860
assertInvoke(getMethod(c1, "f1"), "T", "clone")
862861
assertInvoke(getMethod(c1, "f2"), "T", "clone")
863862
assertInvoke(getMethod(c1, "f3"), "C1", "clone")

0 commit comments

Comments
 (0)