Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnCompanionObject.kt
T
2015-12-08 16:20:56 +03:00

16 lines
316 B
Kotlin
Vendored

// "Create member property 'foo' as constructor parameter" "false"
// ACTION: Create member property 'foo'
// ACTION: Create extension property 'foo'
// ACTION: Rename reference
// ERROR: Unresolved reference: foo
class A<T>(val n: T) {
companion object {
}
}
fun test() {
val a: Int = A.<caret>foo
}