Files
kotlin-fork/compiler/testData/diagnostics/tests/override/ConflictingParameterNames.jet
T
Andrey Breslav 3ee8c5e469 A warning added: parameter names disagree upon override
This should be an error, but there is an issue with Java interop: Java parameters may change names or not have them.
2012-04-27 21:33:48 +04:00

13 lines
226 B
Plaintext

trait A {
fun b(a : Int)
}
trait B : A {}
class C1 : A {
override fun b(<!PARAMETER_NAME_CHANGED_ON_OVERRIDE!>b<!> : Int) {}
}
class C2 : B {
override fun b(<!PARAMETER_NAME_CHANGED_ON_OVERRIDE!>b<!> : Int) {}
}