Load 'equals' parameter from Java code with the name 'other'
This fixes a lot of warnings on mixed Kotlin+Java code about different names for the same parameter because we always loaded 'equals' parameter with the name 'p0', whereas in Kotlin we usually name it 'other'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
// ERROR: Too many arguments for public open fun equals(p0: jet.Any?): jet.Boolean defined in java.lang.Object
|
||||
// ERROR: Too many arguments for public open fun equals(other: jet.Any?): jet.Boolean defined in java.lang.Object
|
||||
|
||||
fun f(d: java.lang.Object) {
|
||||
d.equals("a", <caret>"b")
|
||||
|
||||
Reference in New Issue
Block a user