zig icon indicating copy to clipboard operation
zig copied to clipboard

error: tuple field has a name

Open sytranvn opened this issue 1 year ago • 0 comments

Zig Version

0.12.0

Steps to Reproduce and Observed Output

const Point = struct {
    x: f32,
    y: f32,
    z = f32,
};
$ zig build
install
└─ install test
   └─ zig build-exe test Debug native 1 errors
src/main.zig:2:5: error: tuple field has a name
    x: f32,
    ^
error: the following command failed with 1 compilation errors:
...

Expected Output

Error should point to z = f32 as it is invalid syntax.

sytranvn avatar Apr 29 '24 04:04 sytranvn