Skip to content
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

Issue 6973 - static assert(isOutputRange!(OutputRange!int, int)) is false #330

Merged
merged 1 commit into from
Nov 26, 2011

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Nov 25, 2011

http://d.puremagic.com/issues/show_bug.cgi?id=6973

Allow union and interface types as a parameter of hasMember template.

@shoo
Copy link
Collaborator

shoo commented Nov 25, 2011

I examined various methods, but think that this method is the passable.
However, this method is different from __traits(hasMember, T, name) in behavior in the details. Do you have any opinion?

@9rnsr
Copy link
Contributor Author

9rnsr commented Nov 25, 2011

E.g. __traits(hasMember, T, name) returns true if T == int[] and name == "put" (with std.array module), but it seems not to be expected behavior.
So hasMember template should restrict its parameter IMO, it is a design.

shoo added a commit that referenced this pull request Nov 26, 2011
Issue 6973 - static assert(isOutputRange!(OutputRange!int, int)) is false
@shoo shoo merged commit eeade90 into dlang:master Nov 26, 2011
marler8997 pushed a commit to marler8997/phobos that referenced this pull request Nov 10, 2019
Add a sanitycheck to ensure that changelog files end with .dd
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants