mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
13 lines
209 B
Kotlin
Vendored
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
|
|
}
|