Files
kotlin-fork/compiler/testData/codegen/box/bridges/simpleTraitImpl.kt
T
2015-05-12 19:43:17 +02:00

16 lines
253 B
Kotlin
Vendored

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