Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/tpAsReified/CapturedAsReified.kt
T
2017-11-29 02:54:26 +03:00

10 lines
203 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>) {
<!OI;REIFIED_TYPE_FORBIDDEN_SUBSTITUTION!>foo<!>(x)
}