-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stage1: add @hasField() built-in #2438
Conversation
This was quite straight-forward Closes: ziglang#1439
It doesn't work on imports. |
shouldn't it be |
@emekoi your right. That is the correct documentation of what the code already does. |
Actually include the tests I wrote
IrInstruction base; | ||
|
||
IrInstruction *container_type; | ||
Buf *field_name_buffer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the existence of this field is correct. I think you can follow this pattern: 269a53b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following another existing pattern.
Thanks, and please have a look at the fixups commit: df11512 |
This was quite straight-forward
Closes: #1439