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

10 lines
272 B
Kotlin

trait Tr
trait G<T>
fun test(tr: Tr): Any {
return tr as G<<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>G<!>>
}
fun test1(tr: Tr): Any {
return tr as <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>G<!>.(<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>G<!>) -> <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>G<!>
}