Files
kotlin-fork/compiler/testData/codegen/box/bridges/simpleTraitImpl.kt
T
2015-10-12 11:11:23 +02:00

17 lines
250 B
Kotlin
Vendored

interface A<T> {
fun foo(t: T) = "A"
}
class Z : A<String>
fun box(): String {
val z = Z()
val a: A<String> = z
return when {
z.foo("") != "A" -> "Fail #1"
a.foo("") != "A" -> "Fail #2"
else -> "OK"
}
}