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
:
: