summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/syntax/typeid.tig
blob: fa0ff30f86826c40ce05d7c806eb61642cb80e74 (plain)
1
2
3
4
5
6
7
8
/* error : syntax error, nil should not be preceded by type-id.  */
let
        type rectype = {name : string, id : int}

        var a := rectype nil
in
        a
end