mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
9 lines
352 B
Kotlin
9 lines
352 B
Kotlin
// "Create class 'Foo'" "true"
|
|
// ERROR: <html>Class 'Foo' must be declared abstract or implement abstract member<br/><b>public</b> <b>abstract</b> <b>fun</b> get(thisRef: A<T>, desc: kotlin.PropertyMetadata): B <i>defined in</i> kotlin.properties.ReadOnlyProperty</html>
|
|
|
|
open class B
|
|
|
|
class A<T>(val t: T) {
|
|
val x: B by <caret>Foo(t, "")
|
|
}
|