Bug 10377 – std.typecons.wrap doesn't consider private members

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-16T06:47:00Z
Last change time
2013-06-19T20:41:42Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
zan77137

Comments

Comment #0 by zan77137 — 2013-06-16T06:47:58Z
This code should be work (in git master head): --------------------------------- import std.stdio, std.range, std.typecons; interface MyInputRange(T) { @property T front(); void popFornt(); @property bool empty(); } void main() { writeln(iota(0,10,1).inputRangeObject().wrap!(MyInputRange!int)()); } ---------------- RESULT; Error: class std.range.InputRangeObject!(Result).InputRangeObject member _range is not accessible : :
Comment #1 by k.hara.pg — 2013-06-16T22:51:21Z
Comment #2 by github-bugzilla — 2013-06-19T17:35:43Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/cc4cf0ca152335665439f5aa8cd81914e2643f89 fix Issue 10377 - std.typecons.wrap doesn't consider private members https://github.com/D-Programming-Language/phobos/commit/fdbf4f32c17834d172b199493e79c95e950e906d Merge pull request #1350 from 9rnsr/fix10377 Issue 10377 - std.typecons.wrap doesn't consider private members