fun foo(s: String) {} val s = object : Sam { override fun test(it: String) { foo(it) } }