mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
22 lines
244 B
Kotlin
Vendored
22 lines
244 B
Kotlin
Vendored
// 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()
|