Thread overview
[Issue 10268] New: std.typecons.Nullable!JSONValue - error instantiating
Jun 04, 2013
Mario Kroeplin
Jun 07, 2013
Nils
[Issue 10268] [REG2.063] std.typecons.Nullable!JSONValue - error instantiating
Jun 09, 2013
Kenji Hara
Jun 09, 2013
Kenji Hara
June 04, 2013
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


--- Comment #0 from Mario Kroeplin <kroeplin.d@googlemail.com> 2013-06-04 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: -------
June 07, 2013
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: -------
June 09, 2013
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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-06-08 23:25:41 PDT ---
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: -------
June 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10268



--- Comment #2 from github-bugzilla@puremagic.com 2013-06-09 06:51:25 PDT ---
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 Merge pull request #1340 from 9rnsr/fix10268

[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: -------
June 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10268



--- Comment #3 from github-bugzilla@puremagic.com 2013-06-09 07:46:53 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/050a804c3bb109cadfad8095b28579c1e0e453b4 Merge pull request #1340 from 9rnsr/fix10268

[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: -------
June 09, 2013
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: -------