Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/valOnClassObject.kt.after
T
Dmitry Gridin c89d1af9fa Improve Create property from Usage
Place generated property next to other properties
 #KT-14886 Fixed
2019-02-27 00:07:55 +03:00

14 lines
223 B
Plaintext
Vendored

// "Create member property 'A.Companion.foo'" "true"
// ERROR: Property must be initialized or be abstract
class A<T>(val n: T) {
companion object {
val foo: Int
}
}
fun test() {
val a: Int = A.foo
}