diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-01 18:25:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-01 19:06:40 -0700 |
| commit | 449554a7307731047fcd9c132386fdf405c3b237 (patch) | |
| tree | c579c496ed162736b24930a17070c2544d4fc033 /test/behavior/struct_llvm.zig | |
| parent | f4a249325e8e3741a6294462ae37a79cb9089c56 (diff) | |
| download | zig-449554a7307731047fcd9c132386fdf405c3b237.tar.gz zig-449554a7307731047fcd9c132386fdf405c3b237.zip | |
stage2: remove anytype fields from the language
closes #10705
Diffstat (limited to 'test/behavior/struct_llvm.zig')
| -rw-r--r-- | test/behavior/struct_llvm.zig | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/behavior/struct_llvm.zig b/test/behavior/struct_llvm.zig index 5aaefc8b38..eef7b16487 100644 --- a/test/behavior/struct_llvm.zig +++ b/test/behavior/struct_llvm.zig @@ -618,21 +618,6 @@ test "anonymous struct literal assigned to variable" { try expect(vec.@"2" == 99); } -test "struct with var field" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - - const Point = struct { - x: anytype, - y: anytype, - }; - const pt = Point{ - .x = 1, - .y = 2, - }; - try expect(pt.x == 1); - try expect(pt.y == 2); -} - test "comptime struct field" { if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO |
