JVM IR: Always produce stubs for interface methods in inline classes

This matches the behavior of the JVM backend, with the exception of
@JvmDefault methods, which are currently broken on the JVM backend.
This commit is contained in:
Steven Schäfer
2020-02-17 17:44:05 +01:00
committed by Alexander Udalov
parent 8c9ebc1bf9
commit 465e9f2d68
7 changed files with 141 additions and 43 deletions
@@ -2775,6 +2775,16 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassesUnboxingAfterAssertionOperator.kt");
}
@TestMetadata("interfaceDefaultImplStubs.kt")
public void testInterfaceDefaultImplStubs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/interfaceDefaultImplStubs.kt");
}
@TestMetadata("interfaceJvmDefaultImplStubs.kt")
public void testInterfaceJvmDefaultImplStubs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/interfaceJvmDefaultImplStubs.kt");
}
@TestMetadata("isCheckForInlineClass.kt")
public void testIsCheckForInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/isCheckForInlineClass.kt");