Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/argumentsForT.kt
T
2015-05-12 19:43:17 +02:00

7 lines
230 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
fun <T> foo(t: T<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><String, Int><!>) {}
interface A
class B<T: A>
fun <T> foo1(t: T<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><B<<!UPPER_BOUND_VIOLATED!>String<!>>><!>) {}