www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10268] New: std.typecons.Nullable!JSONValue - error instantiating

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10268

           Summary: std.typecons.Nullable!JSONValue - error instantiating
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: kroeplin.d googlemail.com



09:40:43 PDT ---
With D 2.063 the follwing code no longer compiles:

import std.json;
import std.typecons;

void main()
{
    JSONValue value = void;

    value.type = JSON_TYPE.NULL;
    Nullable!JSONValue(value);
}

phobos/std/typecons.d(1178): Error: cannot implicitly convert expression
(value) of type JSONValue to inout(JSONValue)
test.d(9): Error: template instance
std.typecons.Nullable!(JSONValue).Nullable.__ctor!() error instantiating

Without the recently added 'inout' in 'this()(T value) inout' of 'struct
Nullable(T)' it used to work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 04 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10268


Nils <nilsbossung googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nilsbossung googlemail.com
           Severity|normal                      |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 07 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10268


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
            Summary|std.typecons.Nullable!JSONV |[REG2.063]
                   |alue - error instantiating  |std.typecons.Nullable!JSONV
                   |                            |alue - error instantiating



https://github.com/D-Programming-Language/phobos/pull/1340

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 08 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10268




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/2c1b1ffdca2e606220b911988f879621b042bc78
fix Issue 10268 - std.typecons.Nullable!JSONValue - error instantiating

https://github.com/D-Programming-Language/phobos/commit/e9d5202062a14221893a151fca563d0187275cd3


[REG2.063] Issue 10268 - std.typecons.Nullable!JSONValue - error instantiating

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10268




Commit pushed to 2.063 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/050a804c3bb109cadfad8095b28579c1e0e453b4


[REG2.063] Issue 10268 - std.typecons.Nullable!JSONValue - error instantiating

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 09 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10268


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 09 2013