| 1 | const std = @import("std"); |
| 2 | |
| 3 | pub const json = struct { |
| 4 | pub const JsonValue = union(enum) { |
| 5 | number: f64, |
| 6 | boolean: bool, |
| 7 | // ... |
| 8 | }; |
| 9 | }; |
| 10 | |
| 11 | pub fn main() void { |
| 12 | std.debug.print("{s}\n", .{@typeName(json.JsonValue)}); |
| 13 | } |
| 14 | |
| 15 | // exe=succeed |