expected type expression, found ',', when trying to put a method in anonymous struct literal type #18295
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
Milestone
Zig Version
0.12.0-dev.1829+70664547c
Steps to Reproduce and Observed Output
I just started playing today (coming from D, Go, C++, Python), and it was very confusing, when I got:
zig-linux-x86_64-0.12.0-dev.1829+70664547c
Expected Output
Should fail after initial (or actually just during)
pub
, due to reserved keyword used, or missing comma afterpub
, with appropriate message.The text was updated successfully, but these errors were encountered: