%dw 2.0
output application/json
var defaultValue = 1
fun echo(result: Number = defaultValue) = result

fun test(a: String) = do {
    fun innerFunction(c: String = a) = upper(c)
    ---
    innerFunction()
}

fun test2(a: String = "Leandro") = a
---
{
    a: using(defaultValue = 2) echo(),
    b: test("mariano") ++ test(" achaval"),
    c: test2()
}
