Files
kotlin/idea/testData/quickfix/createFromUsage/createVariable/property/valOnClassObject.kt.after
2016-07-20 15:39:19 +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
}