Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/afterMemberValDelegateRuntime.kt
T

11 lines
261 B
Kotlin

// "Create property 'foo'" "true"
// ERROR: Property must be initialized or be abstract
// ERROR: Variable 'foo' must be initialized
import kotlin.properties.ReadOnlyProperty
class A<T> {
val foo: ReadOnlyProperty<A<T>, A<Int>>
val x: A<Int> by foo
}