Skip to content

Commit 5ccbcdc

Browse files
committed
fix nested optionals
1 parent a841b1f commit 5ccbcdc

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
@@ -252,7 +252,9 @@ fn printValue(options: *Options, out: Writer, comptime T: type, value: T, indent
252252
if (value) |inner| {
253253
try printValue(options, out, optional.child, inner, indent);
254254
} else {
255-
try out.writeAll("null");
255+
try out.writeAll("@as(");
256+
try printTypeName(options, out, T, indent);
257+
try out.writeAll(", null)");
256258
}
257259
},
258260
.void,

0 commit comments

Comments
 (0)