Files
kotlin-fork/compiler/testData/diagnostics/tests/namedArguments/ambiguousNamedArgumentsWithGenerics1.fir.kt
T

15 lines
218 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(a = 1)
c.<!INAPPLICABLE_CANDIDATE!>foo<!>(b = 1)
}