mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
13 lines
283 B
Kotlin
Vendored
13 lines
283 B
Kotlin
Vendored
// "Create parameter 'foo'" "false"
|
|
// ACTION: Create local variable 'foo'
|
|
// ACTION: Create property 'foo'
|
|
// ACTION: Rename reference
|
|
// ERROR: Unresolved reference: foo
|
|
|
|
class A {
|
|
companion object {
|
|
val test: Int get() {
|
|
return <caret>foo
|
|
}
|
|
}
|
|
} |