Files
kotlin-fork/compiler/testData/codegen/box/reflection/call/memberOfGenericClass.kt
T
2016-11-09 21:41:12 +03:00

18 lines
290 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_REFLECT
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
}