-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Suggest .{} syntax when accidentally using {} #22402
Copy link
Copy link
Open
Labels
error messageThis issue points out an error message that is unhelpful and should be improved.This issue points out an error message that is unhelpful and should be improved.
Milestone
Description
Zig Version
0.13.0
Steps to Reproduce and Observed Output
Correct code:
var position = raylib.Vector2{.x = 0, .y = 0};
// ...
position = .{.x = 42, .y = 69};Wrong code
var position = raylib.Vector2{.x = 0, .y = 0};
// ...
position = {.x = 42, .y = 69};me/game.zig:361:98: error: expected ';' after statement
{.x = 42, .y = 69}Expected Output
me/game.zig:42:69: error: start inferred structs with `.{`
.{.x = 42, .y = 69}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
error messageThis issue points out an error message that is unhelpful and should be improved.This issue points out an error message that is unhelpful and should be improved.
