Files
kotlin-fork/compiler/testData/diagnostics/tests/cast/bare/ErrorsInSubstitution.kt
T
2013-09-13 22:41:06 +02:00

7 lines
201 B
Kotlin

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