mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
20 lines
284 B
Kotlin
Vendored
20 lines
284 B
Kotlin
Vendored
// FILE: test/Foo.java
|
|
package test;
|
|
|
|
public class Foo {
|
|
protected final String value;
|
|
|
|
protected Foo(String value) {
|
|
this.value = value;
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
import test.Foo
|
|
|
|
class Bar : Foo("OK") {
|
|
fun baz() = super.value
|
|
}
|
|
|
|
fun box(): String = Bar().baz()
|