mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
16 lines
340 B
Kotlin
Vendored
16 lines
340 B
Kotlin
Vendored
// "Create member property 'foo' as constructor parameter" "false"
|
|
// ACTION: Create member property 'A.Companion.foo'
|
|
// ACTION: Create extension property 'A.Companion.foo'
|
|
// ACTION: Rename reference
|
|
// ERROR: Unresolved reference: foo
|
|
|
|
class A<T>(val n: T) {
|
|
companion object {
|
|
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
val a: Int = A.<caret>foo
|
|
}
|