Skip to content

Commit d53b563

Browse files
authored
std.json: Void initialize return value in emptyOrderedObject (#10617)
Works around issue seen in dlang/dmd#20675.
1 parent 03aeafd commit d53b563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/json.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ struct JSONValue
736736
* Unlike `emptyObject`, the order of inserted keys is preserved.
737737
*/
738738
enum emptyOrderedObject = {
739-
JSONValue v;
739+
JSONValue v = void;
740740
v.orderedObject = null;
741741
return v;
742742
}();

0 commit comments

Comments
 (0)