[Issue 10313] New: inout constructor + IFTI + has indirections arg doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 8 23:21:14 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10313
Summary: inout constructor + IFTI + has indirections arg
doesn't work
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-06-08 23:21:13 PDT ---
This code should work, but doesn't.
Test case:
struct JSONValue
{
JSONValue[] array;
}
struct Nullable(T)
{
this()(inout T value) inout {}
//this(U:T)(inout U value) inout {} // workaround
}
void main()
{
JSONValue value = void;
auto na = Nullable!JSONValue(value);
}
--
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