Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/afterMemberValDelegateRuntime.kt
T
2014-10-14 01:59:50 +04:00

12 lines
277 B
Kotlin

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