mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 00:21:34 +00:00
13 lines
177 B
Kotlin
Vendored
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
|
|
}
|