Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/call/memberOfGenericClass.kt
2015-07-29 23:44:19 +03:00

13 lines
177 B
Kotlin
Vendored

var result = "Fail"
class A<T> {
fun foo(t: T) {
result = t as String
}
}
fun box(): String {
(A<String>::foo).call(A<String>(), "OK")
return result
}