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

9 lines
239 B
Kotlin
Vendored

// !CHECK_TYPE
interface B<T>
interface G<T>: B<T>
fun f(p: B<<!UNRESOLVED_REFERENCE!>Foo<!>>): Any {
val v = <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>p<!> as G
return checkSubtype<G<*>>(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>v<!>)
}