fun foo(f: (Int) -> String) {} fun test() { foo( fun(it: Int): String { // comment1 return "" // comment2 } ) }