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

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-04T09:40:00Z
Last change time
2013-11-20T09:50:34Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
kroeplin.d

Comments

Comment #0 by kroeplin.d — 2013-06-04T09:40:43Z
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.
Comment #1 by k.hara.pg — 2013-06-08T23:25:41Z
Comment #2 by github-bugzilla — 2013-06-09T06:51:25Z
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
Comment #3 by github-bugzilla — 2013-06-09T07:46:53Z
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
Comment #4 by github-bugzilla — 2013-11-20T09:50:34Z