Files
kotlin-fork/idea/testData/inspectionsLocal/redundantCompanionReference/import.kt
T
Mikhail Glukhikh ab973b2ff0 Fix several false positives and make safer "redundant companion ref"
Don't report it on an import directive #KT-23520 Fixed
Don't report it if companion nested class is referenced #KT-23519 Fixed
Check companion reference both by descriptor and by name
2018-04-03 17:45:14 +03:00

13 lines
166 B
Kotlin
Vendored

// PROBLEM: none
import Owner.<caret>Companion.some
class Owner {
companion object {
const val some = ""
}
}
class User {
val anything = some
}