23 lines
291 B
Kotlin
Vendored
23 lines
291 B
Kotlin
Vendored
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// FILE: JavaClass.java
|
|
|
|
public class JavaClass {
|
|
|
|
protected String FIELD = "OK";
|
|
|
|
}
|
|
|
|
// FILE: Kotlin.kt
|
|
|
|
package test
|
|
|
|
import JavaClass
|
|
|
|
class B : JavaClass() {
|
|
inline fun bar() = FIELD
|
|
}
|
|
|
|
fun box() = B().bar()
|