JVM: Don't generate accessors to companions in earlier language versions

This commit is contained in:
Dmitry Petrov
2020-01-13 23:37:53 +03:00
parent 6ad159bb01
commit a16b21a7cc
5 changed files with 49 additions and 1 deletions
@@ -920,6 +920,16 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
public void testKt14258_5() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_5.kt");
}
@TestMetadata("privateCompanionObjectAccessors_after.kt")
public void testPrivateCompanionObjectAccessors_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_after.kt");
}
@TestMetadata("privateCompanionObjectAccessors_before.kt")
public void testPrivateCompanionObjectAccessors_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_before.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/conditions")