fix KT-9484 Don't allow named arguments for inherited functions with parameter name conflicts

#KT9484 Fixed
This commit is contained in:
Michael Nedzelsky
2015-10-09 01:07:53 +03:00
parent ae15443413
commit b92a06929e
18 changed files with 353 additions and 0 deletions
@@ -0,0 +1,14 @@
interface A {
fun foo(a1: Int, a2: Double)
}
interface B {
fun foo(b1: Int, b2: String)
}
interface C : A, B {}
fun test(d: C) {
d.foo(a1 = 1, a2 = 1.0)
d.foo(b1 = 1, b2 = "")
}