16 lines
217 B
Kotlin
Vendored
16 lines
217 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// 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
|
|
}
|