diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-15 01:06:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-15 01:06:05 -0400 |
| commit | 4c7fe74b2c0e8279d0003f820a18d59e1237b74a (patch) | |
| tree | 1b88748105f7b2aa25cd6aedc8565a0e1c34b7c7 /test/behavior/array.zig | |
| parent | dd70336f3ace541586210bd7bd061cc09a8c0e03 (diff) | |
| parent | 04572f6e341e6ff19877d1ae3b79e3baa653e652 (diff) | |
| download | zig-4c7fe74b2c0e8279d0003f820a18d59e1237b74a.tar.gz zig-4c7fe74b2c0e8279d0003f820a18d59e1237b74a.zip | |
Merge pull request #12124 from ziglang/stage2-coerce-result-ptr
Sema: fix coerce_result_ptr in case of inferred result type
Diffstat (limited to 'test/behavior/array.zig')
| -rw-r--r-- | test/behavior/array.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/behavior/array.zig b/test/behavior/array.zig index aea4dd357b..b99ac27651 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -570,10 +570,7 @@ test "type coercion of pointer to anon struct literal to pointer to array" { } test "array with comptime only element type" { - const a = [_]type{ - u32, - i32, - }; + const a = [_]type{ u32, i32 }; try testing.expect(a[0] == u32); try testing.expect(a[1] == i32); } |
