diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-01-18 12:56:48 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-01-22 00:12:36 +0200 |
| commit | d284c00fda45b943f4ed5244ae1cb9e7f90f481f (patch) | |
| tree | bfec199eade94e25e173b0150b565bd1123f7764 /test/behavior/bugs | |
| parent | 7f635ae7bdf63da19d09763c7fdbdc61fa035282 (diff) | |
| download | zig-d284c00fda45b943f4ed5244ae1cb9e7f90f481f.tar.gz zig-d284c00fda45b943f4ed5244ae1cb9e7f90f481f.zip | |
Sema: handle lazy values in more places
* resolve lazy values in anon structs being passed to anytype params
* use `resolveMaybeUndefValIntable` where appropriate
Closes #14356
Diffstat (limited to 'test/behavior/bugs')
| -rw-r--r-- | test/behavior/bugs/12488.zig | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/behavior/bugs/12488.zig b/test/behavior/bugs/12488.zig deleted file mode 100644 index b05197b24f..0000000000 --- a/test/behavior/bugs/12488.zig +++ /dev/null @@ -1,13 +0,0 @@ -const expect = @import("std").testing.expect; - -const A = struct { - a: u32, -}; - -fn foo(comptime a: anytype) !void { - try expect(a[0][0] == @sizeOf(A)); -} - -test { - try foo(.{[_]usize{@sizeOf(A)}}); -} |
