original.name="Template_Valid_19" whiley.compile.ignore=true WhileyCompiler.issue=994 ====== >>> main.whiley function select(S|T x, S y) -> (S|T r): if x == y: return y else: return x public export method test(): int|bool a1 = (int|bool) 1 int|bool bt = (int|bool) true bool|int c2 = (bool|int) 2 bool|int df = (bool|int) false // assume select(a1,1) == 1 assume select(a1,2) == 1 // assume select(bt,true) == true assume select(bt,false) == true // assume select(c2,2) == 2 assume select(c2,false) == 2 // assume select(df,2) == false assume select(df,1) == false ---