Files
kotlin-fork/idea/testData/inspectionsLocal/redundantCompanionReference/named.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

9 lines
113 B
Kotlin
Vendored

class C {
companion object Obj {
fun create() = C()
}
}
fun test() {
C.<caret>Obj.create()
}