Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt10472.kt
T

14 lines
229 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
object Right
object Wrong
interface A<T>
interface B<T> : A<T>
fun <T> foo(vararg t: T) = Wrong
fun <T> foo(t: A<T>) = Wrong
fun <T> foo(t: B<T>) = Right
fun test(b: B<Int>): Right = foo(b)