mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
std.traits.hasMember: just forward to __traits(hasMember, ...)
This way opDispatch'ed members are recognized. Fixes issue 14605 - RefAppender fails isOutputRange.
This commit is contained in:
parent
984b7343a8
commit
dd2161705a
2 changed files with 16 additions and 13 deletions
|
@ -3573,6 +3573,12 @@ unittest
|
|||
assert(app3.data == [1, 2, 3]);
|
||||
}
|
||||
|
||||
unittest // issue 14605
|
||||
{
|
||||
static assert(isOutputRange!(Appender!(int[]), int));
|
||||
static assert(isOutputRange!(RefAppender!(int[]), int));
|
||||
}
|
||||
|
||||
unittest
|
||||
{
|
||||
Appender!(int[]) app;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue