aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/def_type_enum.good
blob: 00619dee8399d91171ef23016ad63eab8fbe55ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


typedef a = enum();
typedef b = enum(x);
typedef c = enum(x,y);
typedef d = enum(x,y,);
typedef e = enum(x=10, y);

typedef f = int enum();
typedef g = int enum(x,y);
typedef h = int enum(x=10,y);
typedef i = (int x,int y) enum(
    left=(-1,0), right=(1,0), up=(0,-1), down=(0,1)
);

typedef j = enum(x,y);