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

[REG2.069] Issue 15781 - Template type deduction failure with same-type variables with different constness #5531

Merged
merged 1 commit into from Mar 19, 2016

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Mar 15, 2016

No description provided.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15781 [REG2.069] Template type deduction failure with same-type variables with different constness

@9rnsr 9rnsr changed the title Issue 15781 - Template type deduction failure with same-type variables with different constness [REG2.069] Issue 15781 - Template type deduction failure with same-type variables with different constness Mar 15, 2016
@yebblies
Copy link
Member

Auto-merge toggled on

@9rnsr
Copy link
Contributor Author

9rnsr commented Mar 19, 2016

Thanks, but the auto-merge is currently blocked by the red of Phobos unittest in stable branch.
See also: dlang/phobos#4092

yebblies added a commit that referenced this pull request Mar 19, 2016
[REG2.069] Issue 15781 - Template type deduction failure with same-type variables with different constness
@yebblies yebblies merged commit cd8e317 into dlang:stable Mar 19, 2016
@PetarKirov
Copy link
Member

Will this work with immutable, i.e.:

static assert(is(typeof(foo(ms, is)) == const S));

?

@9rnsr
Copy link
Contributor Author

9rnsr commented Mar 19, 2016

@ZombineDev Yes, MODmerge(MODmutable, MODimmutable) returns MODconst.

@9rnsr 9rnsr deleted the fix15781 branch March 19, 2016 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants