Sema: improve circular dependency errors

This commit is contained in:
Veikka Tuominen
2022-08-02 19:54:54 +03:00
parent 797ded47f0
commit aa78ebaf95
8 changed files with 128 additions and 50 deletions

View File

@@ -0,0 +1,9 @@
const A = struct { a : A, };
export fn entry() usize { return @sizeOf(A); }
// error
// backend=stage2
// target=native
//
// :1:11: error: struct 'tmp.A' depends on itself
// :1:20: note: while checking this field