%dw 2.0

type Node = {
    name: String,
    child?: Node
}

type SimpleType = {
    name: Number
}

fun traverse(tree: SimpleType) = tree.name

fun traverse(tree: Node) = tree.name

---
traverse({name: "Mariano", child: {name: "Matias"}})