original.name="Coercion_Valid_16" ====== >>> main.whiley type Element is {Node[] children} type Node is Element|int[] function count(Node n) -> int: if n is int[]: return 0 else: int r = 1 for i in 0..|n.children|: r = r + count(n.children[i]) return r public export method test(): Node n1 = [] Node n2 = {children:[]} Node n3 = {children:[n1]} Node n4 = {children:[n1,n2]} assume count(n1) == 0 assume count(n2) == 1 assume count(n3) == 1 assume count(n4) == 2 ---