We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
std::core::has_membe
this
parent
Try running the following simple pattern:
import std.core; import std.io; using Test; struct Parent { Test test; u8 byte; std::print("{}",std::core::has_member(this,"test")); }; Parent p @0; struct Test { u8 var; auto local = parent; std::print("{}",local); std::print("{}",std::core::has_member(this,"var")); std::print("{}",std::core::has_member(parent,"byte")); }; std::print("{}",std::core::has_member(p,"test"));
This prints false for all but the last print statement. I also don't understand why local appears to be empty no matter what I try.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Try running the following simple pattern:
This prints false for all but the last print statement.
I also don't understand why local appears to be empty no matter what I try.
The text was updated successfully, but these errors were encountered: