fun test() { class Test{ fun contains(fn: () -> Boolean) : Boolean = true } val test = Test() test.contains { true } }