| author | |
| committer | |
| log | 4e52281142c80230e1c60ece2824656dd08afcbd |
| tree | b1a3489dd47666d4fb21f00d30aedf250e451267 |
| parent | 50357dad453845a69efff53370438dc29585dd17 |
2 files changed, 5 insertions(+), 1 deletions(-)
src/analyze.cpp-1| ... | ... | @@ -1066,7 +1066,6 @@ static TypeTableEntry *analyze_cast_expr(CodeGen *g, ImportTableEntry *import, B |
| 1066 | 1066 | enum LValPurpose { |
| 1067 | 1067 | LValPurposeAssign, |
| 1068 | 1068 | LValPurposeAddressOf, |
| 1069 | LValPurposeNotLVal, | |
| 1070 | 1069 | }; |
| 1071 | 1070 | |
| 1072 | 1071 | static TypeTableEntry *analyze_lvalue(CodeGen *g, ImportTableEntry *import, BlockContext *block_context, |
test/run_tests.cpp+5| ... | ... | @@ -867,6 +867,11 @@ fn f() { |
| 867 | 867 | )SOURCE", 2, |
| 868 | 868 | ".tmp_source.zig:5:6: error: no member named 'foo' in 'A'", |
| 869 | 869 | ".tmp_source.zig:6:16: error: no member named 'bar' in 'A'"); |
| 870 | ||
| 871 | add_compile_fail_case("redefinition of struct", R"SOURCE( | |
| 872 | struct A { x : i32, } | |
| 873 | struct A { y : i32, } | |
| 874 | )SOURCE", 1, ".tmp_source.zig:3:1: error: redefinition of 'A'"); | |
| 870 | 875 | } |
| 871 | 876 | |
| 872 | 877 | static void print_compiler_invocation(TestCase *test_case) { |