class A(val t: T) { fun foo(): T = t } fun box() = A("OK").(A::foo)()