Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.kt
T

10 lines
200 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
class A<F>
inline fun <reified T> foo(x: A<T>) {}
fun test(x: A<out CharSequence>) {
<!REIFIED_TYPE_FORBIDDEN_SUBSTITUTION!>foo<!>(x)
}