Files
kotlin/idea/testData/quickfix/createFromUsage/createVariable/property/valOnClassObject.kt
2016-07-20 15:39:19 +03:00

13 lines
209 B
Kotlin
Vendored

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