Files
kotlin-fork/compiler/testData/codegen/box/statics/inlineCallsStaticMethodFromOtherPackage.kt
T
Alexander Udalov e7864c7351 Fix inlineCallsStaticMethodFromOtherPackage.kt by disabling related language feature
This test is not possible for 1.4, where protected calls from public
inline functions are prohibited.
2020-01-17 12:07:30 +01:00

27 lines
446 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitProtectedCallFromInline
// TARGET_BACKEND: JVM
// The non-IR backend attempts to call a non-existent accessor in class Test.
// IGNORE_BACKEND: JVM
// FILE: Test.java
public class Test {
protected static String testStatic() {
return "OK";
}
}
// FILE: test.kt
class Test2 {
inline fun test() = Test.testStatic()
}
// FILE: test2.kt
package anotherPackage
import Test2
fun box() = Test2().test()