[Issue 11011] New: struct core.time.Duration member this is not accessible
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 11 06:56:28 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11011
Summary: struct core.time.Duration member this is not
accessible
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-09-11 16:56:26 EEST ---
An example in core.time.Duration's documentation reads:
assert(dur!"hnsecs"(27) == Duration(27));
However, attempting to compile this example (outside of core.datetime) results
in the error message:
struct core.time.Duration member this is not accessible
Thus, either the constructor needs to be made public, or the documentation
updated to fix or remove unusable examples.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list