modern-compiler-ml/tiger/testcases/test14.tig
jmug 33d8bac511 Add the tiger source code bundle from the book site
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2024-12-18 15:18:45 -08:00

13 lines
219 B
Text

/* error : compare rec with array */
let
type arrtype = array of int
type rectype = {name:string, id: int}
var rec := rectype {name="aname", id=0}
var arr := arrtype [3] of 0
in
if rec <> arr then 3 else 4
end