481607df43
Related to KT-52762
16 lines
270 B
Kotlin
Vendored
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)
|
|
}
|