← Back to index
|
Original Bugzilla link
Bug 11933 – A range wrapped in a Variant does not work with other ranges
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-15T18:24:00Z
Last change time
2015-08-06T20:38:15Z
Assigned to
nobody
Creator
monkeyworks12
Comments
Comment #0
by monkeyworks12 — 2014-01-15T18:24:19Z
import std.stdio; import std.algorithm; import std.variant; import std.range; //Tested with DMD 2.064.2 void main() { auto nums = iota(1, 10_000); Variant filtered = nums.filter!(n => n % 2 == 0); //Error: template std.range.take does not match any function template declaration. writeln(filtered.take(19).back); }