zig
zig copied to clipboard
added an error for invalid pointer dereference
This error occurs when foo*. is typed instead of foo.* to dereference a pointer which is a common beginner error.
Sorry about the closed PR I tried fixing one thing and everything went wrong. This is also the first time I've ever made a PR to a large repo so there still might be problems with this one.
Could you add a test case to parser_test.zig?
Thank you but I do not want the compiler to guess that the user intended .* when it encounters *..