fun foo(x: X): String { fun bar(y: Y) = x.toString() + y.toString() return bar("K") } fun box() = foo("O")