mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
15 lines
184 B
Kotlin
15 lines
184 B
Kotlin
// "Create object 'Foo'" "true"
|
|
// DISABLE-ERRORS
|
|
|
|
import kotlin.properties.ReadWriteProperty
|
|
|
|
open class B
|
|
|
|
class A {
|
|
var x: B by Foo
|
|
}
|
|
|
|
object Foo : ReadWriteProperty<A, B> {
|
|
|
|
}
|