const std = @import("std"); const Foo = struct { x: ?comptime_int, }; test "hi" { const foo = Foo{ .x = 1234 }; const y = foo.x orelse 5678; std.testing.expect(y == 1234); }