← Back to index
|
Original Bugzilla link
Bug 14144 – [REG2.067a] opAssign seems broken
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-08T00:27:00Z
Last change time
2015-02-21T09:11:09Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
deadalnix
Comments
Comment #0
by deadalnix — 2015-02-08T00:27:48Z
As per dustmite : struct JSON { union { double _floating; } this(typeof(null) ) { } @trusted pure nothrow typeof(null) opAssign(typeof(null) nothing) { return null; } } unittest { JSON[string] x; x["wat"] = null; } $ ../dmd/src/dmd json.d -unittest json.d(20): Error: incompatible types for ((x["wat"].opAssign(null)) : (x["wat"] = JSON , x["wat"].this(null))): 'typeof(null)' and 'JSON' It work on the release and is breaking SDC.
Comment #1
by sinkuupump — 2015-02-08T01:47:25Z
Introduced in
https://github.com/D-Programming-Language/dmd/pull/4366
Comment #2
by k.hara.pg — 2015-02-08T05:57:47Z
https://github.com/D-Programming-Language/dmd/pull/4392
Comment #3
by github-bugzilla — 2015-02-08T10:09:21Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/35df0364a5418909d6f6a1a85b2895d329b94b17
fix Issue 14144 - opAssign seems broken
https://github.com/D-Programming-Language/dmd/commit/b9c8ded68e8ad157466dfd718aac6203fadd0233
Merge pull request #4392 from 9rnsr/fix14144 [REG2.067a] Issue 14144 - opAssign seems broken
Comment #4
by github-bugzilla — 2015-02-21T09:11:09Z
Commits pushed to
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/35df0364a5418909d6f6a1a85b2895d329b94b17
fix Issue 14144 - opAssign seems broken
https://github.com/D-Programming-Language/dmd/commit/b9c8ded68e8ad157466dfd718aac6203fadd0233
Merge pull request #4392 from 9rnsr/fix14144