whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="TypeEquals_Valid_31"
======
>>> main.whiley


type pos is (int p) where p > 0

type rec1 is {int[] f1, pos f2}

type rec2 is {int f1, int f2}

type rec12 is rec1 | rec2

function f(rec12 x) -> int:
    return 1

public export method test() :
    rec1 r1 = {f1: "hello", f2: 2}
    rec2 r2 = {f1: 1, f2: 0}
    assume f(r1) == 1
    assume f(r2) == 1

---