mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
7 lines
111 B
Plaintext
7 lines
111 B
Plaintext
>>> open class A(val result: String) {
|
|
... fun foo() = result
|
|
... }
|
|
>>> class B : A("OK")
|
|
>>> B().foo()
|
|
OK
|