aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/verifier/type_compatibility_literals.bad
blob: 8c1c7cbd76d63ea34a9ef56c9f5cd5088fd0e006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/* ERRORS */
int a = :false;
bool b = 2;
(byte x) c = 3;
int d = (4,);
int e = [5,];
int#[2] f = 6;

/* ERRORS */
byte sbl = -1;
byte sbh = 256;
uint8 sbl = -1;
uint8 sbh = 256;
int16 ssl = -32769;
int16 ssh = 32768;
uint16 sul = -1;
uint16 suh = 65536;