Issue 8367 - Insufficient constraints for chain #1047

Merged
merged 1 commit into from Jan 9, 2013

Projects

None yet

3 participants

@Poita
Contributor
Poita commented Jan 1, 2013

The error message from compiling the bug's sample code after this change is:

bug.d(11): Error: template std.range.chain does not match any function template declaration. Candidates are:
std/range.d(2018):        std.range.chain(Ranges...)(Ranges rs) if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) && !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void))
bug.d(11): Error: template std.range.chain(Ranges...)(Ranges rs) if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) && !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void)) cannot deduce template function from argument types !()(MapResult!(__lambda2, Foo[]),string)

Fixes Issue 8367
http://d.puremagic.com/issues/show_bug.cgi?id=8367

@Poita Poita Issue 8367 - Insufficient constraints for chain
The error message from compiling the bug's sample code after this change is:

```
bug.d(11): Error: template std.range.chain does not match any function template declaration. Candidates are:
std/range.d(2018):        std.range.chain(Ranges...)(Ranges rs) if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) && !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void))
bug.d(11): Error: template std.range.chain(Ranges...)(Ranges rs) if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) && !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void)) cannot deduce template function from argument types !()(MapResult!(__lambda2, Foo[]),string)
```

Fixes Issue 8367
http://d.puremagic.com/issues/show_bug.cgi?id=8367
1008da7
@alexrp
Member
alexrp commented Jan 1, 2013

Assigning to @andralex.

@andralex andralex was assigned Jan 1, 2013
@andralex andralex merged commit ca44a11 into dlang:master Jan 9, 2013

1 check passed

default Pass: 10
Details
@andralex
Member
andralex commented Jan 9, 2013

tanx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment