modern-compiler-ml/tiger/testcases/test23.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

9 lines
155 B
Text

/* error : type mismatch */
let
type rectype = {name:string , id:int}
var rec1 := rectype {name="aname", id=0}
in
rec1.name := 3;
rec1.id := ""
end