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

11 lines
271 B
Kotlin

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