Files
kotlin-fork/compiler/testData/diagnostics/tests/namedArguments/ambiguousNamedArgumentsWithGenerics3.fir.kt
T
2022-06-23 18:18:42 +00:00

16 lines
270 B
Kotlin
Vendored

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