Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/afterMemberValDelegateRuntime.kt
T
2015-02-04 23:38:16 +03:00

11 lines
269 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> {
private val foo: ReadOnlyProperty<A<T>, A<Int>>
val x: A<Int> by foo
}