order-independent declarations

code constructs and traverses a dependency graph in a deterministic
order.
This commit is contained in:
Andrew Kelley
2016-01-09 23:49:22 -07:00
parent 6d9119fcd9
commit 1fe1235e14
6 changed files with 504 additions and 202 deletions

View File

@@ -1203,7 +1203,7 @@ struct A { a : A, }
struct A { b : B, }
struct B { c : C, }
struct C { a : A, }
)SOURCE", 1, ".tmp_source.zig:2:1: error: struct has infinite size");
)SOURCE", 1, ".tmp_source.zig:4:1: error: struct has infinite size");
add_compile_fail_case("invalid struct field", R"SOURCE(
struct A { x : i32, }