Updated cast syntax in code samples.

This commit is contained in:
Christoffer Lerno
2021-05-18 17:23:27 +02:00
parent 216467cbf8
commit fc31c15914
50 changed files with 113 additions and 2770 deletions

View File

@@ -1,14 +1,14 @@
const char AA = ~cast(0 as char);
const char AA = ~(char)(0);
const char BB = 200 ;
const uint CC = ~cast(0 as uint);
const uint CC = ~(uint)(0);
const uint DD = FOO;
const FOO = ~cast(0 as uint);
const FOO = ~(uint)(0);
uint x = AA;
uint z = CC;
char w = cast(FOO as char);
ushort v = cast(FOO as ushort);
char w = (char)(FOO);
ushort v = (ushort)(FOO);
uint z2 = DD;
func void test()