summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/type/test22.tig
blob: 899b586b82d121f9cad0bfc74b01e6f44915a9c1 (plain)
1
2
3
4
5
6
7
8
/* error : field not in record type */

let
        type rectype = {name : string , id : int}
        var rec1 := rectype {name="Name", id=0}
in
        rec1.nam := "asd"
end