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