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