Support for $assert. Also change order of checking global declarations from parsing to semantic analysis.

This commit is contained in:
Christoffer Lerno
2020-07-30 17:43:12 +02:00
committed by Christoffer Lerno
parent 8586bf3f8d
commit 380c1c8ab4
19 changed files with 201 additions and 12 deletions

View File

@@ -3,13 +3,6 @@
//char[] str3 = "hello";
func void test2()
{
int[2] a = { 1, 2 };
int[2] b = 30; // #error: Cannot implicitly cast 'compint' to 'int[2]'
int[2] c = a;
}
int[2] a1 = { 1, 2 };