Files
kotlin-fork/compiler/testData/diagnostics/tests/namedArguments/ambiguousNamedArgumentsWithGenerics1.fir.kt
T
2022-06-20 11:28:55 +00:00

16 lines
260 B
Kotlin
Vendored

interface A<T> {
fun foo(a: T)
}
interface B {
fun foo(b: Int)
}
interface C : A<Int>, B { // Warning here, this is correct
}
fun test(c: C) {
c.foo(<!NAME_FOR_AMBIGUOUS_PARAMETER!>a<!> = 1)
c.foo(<!NAME_FOR_AMBIGUOUS_PARAMETER!>b<!> = 1)
}