Files
kotlin-fork/idea/testData/inspectionsLocal/redundantCompanionReference/sameNameDifferentArgsFunction.kt
T
Mikhail Glukhikh c5c0cbccde Redundant companion reference: simplify name conflict checking code
Before this commit, function with same name but different signature
wasn't counted as name conflict, now it is - just because that exact
check in this place could be too complex and error-prone

Enhancement for KT-27539
2018-11-29 14:32:08 +03:00

13 lines
186 B
Kotlin
Vendored

// PROBLEM: none
class Test {
companion object {
fun f(x: Int, y: Int) = 1
}
fun f(x: Int, y: String) = 2
fun test() {
<caret>Companion.f(1, 2)
}
}