original.name="Reference_Valid_20" js.execute.ignore=true Whiley2JavaScript.issue=44 ====== >>> main.whiley type Node is { int nodeType, ... } type Element is { int nodeType, int nodeValue } public export method test(): &Element p_elem = new {nodeType:1, nodeValue:2} &Node p_node = p_elem // assert p_node->nodeType == 1 ---