mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
14 lines
223 B
Plaintext
Vendored
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
|
|
}
|