Files
kotlin/compiler/testData/codegen/box/statics/inlineCallsStaticMethod.kt

32 lines
447 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitProtectedCallFromInline
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FILE: Test.java
public class Test {
protected String data = "O";
protected Test() {
}
protected static String testStatic() {
return "K";
}
}
// FILE: test.kt
public inline fun test(): String {
val p = object : Test() {}
return p.data + Test.testStatic();
}
fun box(): String {
return test()
}