Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberValDelegateRuntime.kt.after
T
2015-10-15 00:05:31 +03:00

15 lines
480 B
Plaintext
Vendored

import kotlin.properties.ReadOnlyProperty
// "Create class 'Foo'" "true"
// ERROR: <html>Class 'Foo' must be declared abstract or implement abstract member<br/><b>public</b> <b>abstract</b> operator <b>fun</b> getValue(thisRef: A&lt;T&gt;, property: kotlin.reflect.KProperty&lt;*&gt;): B <i>defined in</i> kotlin.properties.ReadOnlyProperty</html>
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> {
}