e7864c7351
This test is not possible for 1.4, where protected calls from public inline functions are prohibited.
27 lines
446 B
Kotlin
Vendored
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()
|