mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
121 B
Kotlin
13 lines
121 B
Kotlin
// C
|
|
|
|
trait Tr {
|
|
fun foo(): Any
|
|
val v: Any
|
|
}
|
|
|
|
class C: Tr {
|
|
override fun foo() = 1
|
|
override val v = 1
|
|
}
|
|
|