diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-15 22:34:20 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-15 22:34:20 -0500 |
| commit | 0b6cf0aa637b5cd7551aca295832f06d56315921 (patch) | |
| tree | 725813bcd97d86f1a48df5c7ec74fd67fdcd897a /test/run_tests.cpp | |
| parent | 8106f9846aea806350d319535e0181104299ba5d (diff) | |
| download | zig-0b6cf0aa637b5cd7551aca295832f06d56315921.tar.gz zig-0b6cf0aa637b5cd7551aca295832f06d56315921.zip | |
fix handling of invalid enumeration
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 2a9bb72670..91f9e74db1 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1521,9 +1521,7 @@ fn foo() { jll.init(1234); var jd = JsonNode {.kind = JsonType.JSONArray , .jobject = JsonOA.JSONArray {jll} }; } - )SOURCE", 2, - ".tmp_source.zig:6:16: error: use of undeclared identifier 'JsonList'", - ".tmp_source.zig:27:8: error: no member named 'init' in 'JsonNode'"); + )SOURCE", 1, ".tmp_source.zig:6:16: error: use of undeclared identifier 'JsonList'"); add_compile_fail_case("method call with first arg type primitive", R"SOURCE( const Foo = struct { |
