Bug 3181 – Sequence example fails to compile

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2009-07-15T19:33:00Z
Last change time
2015-06-09T01:28:08Z
Assigned to
andrei
Creator
Jesse.K.Phillips+D

Comments

Comment #0 by Jesse.K.Phillips+D — 2009-07-15T19:33:47Z
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 by andrei — 2010-09-26T18:23:02Z
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.