Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnCompanionObject.kt
T
2015-10-20 18:39:47 +03:00

15 lines
288 B
Kotlin
Vendored

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