original.name="Template_Valid_35" whiley.compile.ignore=true WhileyCompiler.issue=977 ====== >>> main.whiley type List is null | { List next, T data } function isListInt(List|List l) -> (bool r): if l is List: return true else: return false public export method test(): List li1 = null List li2 = { next: li1, data: 1 } List li3 = { next: li2, data: 2 } List lb1 = null List lb2 = { next: lb1, data: false } List lb3 = { next: lb2, data: true } // test negative cases assume !isListInt(lb1) assume !isListInt(lb2) assume !isListInt(lb3) // test positive cases assume isListInt(li1) assume isListInt(li2) assume isListInt(li3) ---