D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3181 - Sequence example fails to compile
Summary: Sequence example fails to compile
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Linux
: P2 minor
Assignee: Andrei Alexandrescu
URL: http://digitalmars.com/d/2.0/phobos/s...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 19:33 UTC by Jesse Phillips
Modified: 2015-06-09 01:28 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jesse Phillips 2009-07-15 19:33:47 UTC
If you create a program using the example provided for sequence!() you get a compilation error:

/usr/local/include/d/phobos2/std/functional.d(191): Error: static assert  "Bad binary function q{a[0] + n * a[1]}. You need to use a valid D expression using symbols a of type Tuple!(int,int) and n of type uint."
Comment 1 Andrei Alexandrescu 2010-09-26 18:23:02 UTC
This has been fixed a while ago. I added a unittest in http://www.dsource.org/projects/phobos/changeset/2067 to make sure this doesn't regress.