D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8702 - tuple(tuple(1)) fails to compile, but tuple(tuple(1),1) works
Summary: tuple(tuple(1)) fails to compile, but tuple(tuple(1),1) works
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-09-20 16:09 UTC by thelastmammoth
Modified: 2012-11-14 21:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description thelastmammoth 2012-09-20 16:09:21 UTC
inconsistent:
auto a1=tuple(tuple(1));//CT error
auto a2=tuple(tuple(1),1);//works

bug?
Comment 2 github-bugzilla 2012-09-28 07:08:17 UTC
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/5186759832d67cf54b2ba8b50139ff8f89526422
fix Issue 8702 - tuple(tuple(1)) fails to compile, but tuple(tuple(1),1) works

https://github.com/D-Programming-Language/phobos/commit/ecff5a0899c9193c41f0a147a293603cacdab485
Merge pull request #808 from 9rnsr/fix8702

Issue 8702 - tuple(tuple(1)) fails to compile, but tuple(tuple(1),1) works