Skip to content

Commit

Permalink
Void initialize return value in emptyOrderedObject
Browse files Browse the repository at this point in the history
Works around issue seen in dlang/dmd#20675.
  • Loading branch information
ibuclaw committed Jan 10, 2025
1 parent 03aeafd commit 7767d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/json.d
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ struct JSONValue
* Unlike `emptyObject`, the order of inserted keys is preserved.
*/
enum emptyOrderedObject = {
JSONValue v;
JSONValue v = void;
v.orderedObject = null;
return v;
}();
Expand Down

0 comments on commit 7767d1a

Please sign in to comment.