fix issue 7804 - Allow __traits(getMember) as a BasicType#8938
fix issue 7804 - Allow __traits(getMember) as a BasicType#8938thewilsonator merged 1 commit intomasterfrom unknown repository
Conversation
|
Thanks for your pull request and interest in making D better, @bbasile! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#8938" |
|
|
I'm afraid that this one has been merged a bit too eagerly so you can still review and will push additional correction if needed. For example i just addressed one of the problem pointed out in the old PR just a few hours ago (statement VS declaration). |
|
Oops sorry. |
|
In theory i think that you should have used the |
|
mir-algothithm is currently broken though, is build kite is red. auto-merge wouldn't do anything for a long time. |
|
Yeah that one definitely needed more review. I for one have comments about the changelog wording and some tests to be added with regards to other traits that the one intended to work. I understand the desire to be quick but there needs to be a minimal period to allow people to review things, according to the importance of the PR. |
|
Oh for some reason I though the one it was replacing was approved, it wasn't. I've been looking at too many PRs, need to take a break. |
|
@Geod24, can you make suggestions for the changelog entry ? About the other traits, I can however add these errors (with the changelog modification PR): module more;
__traits(getMember, more, "object") not_a_Type; // the trait suceeds but the variable decl not
__traits(getMember, more, "NotExisting") not_existing; // trait error
alias nothing = __traits(getMember, more, "NotExisting"); // trait error |
|
Okay, so my first test (with master, 0427b57) was: class Foo
{
void func() {}
}
void main ()
{
__traits(getMember, Foo, "func") var;
}% ./generated/osx/release/64/dmd foo.d
[3] 81445 segmentation fault ./generated/osx/release/64/dmd foo.d |
This the continuation of #8031.