zig icon indicating copy to clipboard operation
zig copied to clipboard

added an error for invalid pointer dereference

Open RyanVail opened this issue 2 years ago • 1 comments

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.

RyanVail avatar Mar 12 '23 16:03 RyanVail

Could you add a test case to parser_test.zig?

Vexu avatar Mar 12 '23 16:03 Vexu

Thank you but I do not want the compiler to guess that the user intended .* when it encounters *..

andrewrk avatar Oct 19 '23 00:10 andrewrk