Files
kotlin-fork/compiler/testData/codegen/box/statics/inlineCallsStaticMethod.kt
T
2020-04-16 15:08:11 +03:00

31 lines
417 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitProtectedCallFromInline
// 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()
}