22 lines
416 B
Kotlin
22 lines
416 B
Kotlin
// KT-2219 if function overload overridden function its name doesn't translated correctly
|
|
|
|
package foo
|
|
|
|
trait I {
|
|
fun test(): String
|
|
}
|
|
|
|
class P : I {
|
|
override fun test(): String = "foo" + test("bar")
|
|
|
|
private fun test(p: String) = p
|
|
|
|
fun test(s: String, i: Int) = "$i $s"
|
|
}
|
|
|
|
fun box(): String {
|
|
assertEquals("foobar", P().test())
|
|
assertEquals("35 baz", P().test("baz", 35))
|
|
|
|
return "OK"
|
|
} |