class Foo fun baz(f: Foo.(i: Int, j: Int) -> Int) {} fun main(args: Array) { baz( fun Foo.(i: Int, j: Int): Int { return i + j } ) }