diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-05 17:09:01 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-05 17:09:01 -0400 |
| commit | e2dc63644ab3d8e5cdaec2d58dc57c587295081f (patch) | |
| tree | 776b9916ec8911cee97f7992e7255acf6331fc70 /src/os.cpp | |
| parent | 6ef15fc8d00c06bc767b91515e2c919448948e6f (diff) | |
| download | zig-e2dc63644ab3d8e5cdaec2d58dc57c587295081f.tar.gz zig-e2dc63644ab3d8e5cdaec2d58dc57c587295081f.zip | |
type_has_one_possible_value takes comptime struct fields into account
Before, type_has_one_possible_value would return false for the value
`.{1}`. But actually, that type is a tuple with a single comptime field.
Such a type, in fact, has one possible value.
This plus the corresponding adjustment to get_the_one_possible_value
solves #3878.
Diffstat (limited to 'src/os.cpp')
0 files changed, 0 insertions, 0 deletions
