Skip to content

Commit 338df8b

Browse files
committed
fix nested optionals
1 parent bcf40d2 commit 338df8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/std/Build/Step/Options.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ fn printValue(options: *Options, out: Writer, comptime T: type, value: T, indent
253253
if (value) |inner| {
254254
try printValue(options, out, optional.child, inner, indent);
255255
} else {
256-
try out.writeAll("null");
256+
try out.writeAll("@as(");
257+
try printTypeName(options, out, T, indent);
258+
try out.writeAll(", null)");
257259
}
258260
},
259261
.void,

0 commit comments

Comments
 (0)