aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/qualifiers.bad
blob: 8cab9979388ac2550d340f80fe9cc0870bcc83fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

// TODO decide when the "shared" qualifier should be allowed

/* ERRORS */
var ()() a;
() var () b;
list var[int] c;
(var int) d; // var inside non-var
(int, var int#[2])? e;
var var int f;
const int g; // const is default
(var ret)() h;
()(var param) i;

typedef Thing = (
    var int a, // ERROR: var is inherited from the struct, so it's redundant
    const int^ b, // ERROR: const is the default for pointer targets
);

var; // ERROR

// EOF ERROR
var