20 lines
358 B
Kotlin
Vendored
20 lines
358 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: JS_IR_ES6
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE, WASM
|
|
|
|
// 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
|
|
}
|