mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
24 lines
321 B
Kotlin
Vendored
24 lines
321 B
Kotlin
Vendored
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// 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()
|