dmitry.petrov
interface A { fun foo(a: A) } interface B { fun foo(x: Any) } fun test(any: Any) { if (any is A && any is B) any.foo(any) }