mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
15 lines
408 B
Plaintext
Vendored
15 lines
408 B
Plaintext
Vendored
import kotlin.properties.ReadOnlyProperty
|
|
|
|
// "Create class 'Foo'" "true"
|
|
// ERROR: Class 'Foo' is not abstract and does not implement abstract member public abstract operator fun getValue(thisRef: A<T>, property: KProperty<*>): B defined in kotlin.properties.ReadOnlyProperty
|
|
|
|
open class B
|
|
|
|
class A<T>(val t: T) {
|
|
val x: B by Foo(t, "")
|
|
}
|
|
|
|
class Foo<T>(t: T, s: String) : ReadOnlyProperty<A<T>, B> {
|
|
|
|
}
|