zig/test/behavior
Andrew Kelley bcf2eb1a00 Sema: fix closure capture typeof runtime-known parameter
Closures are not necessarily constant values. For example, Zig
code might do something like this:

    fn foo(x: anytype) void {
        const S = struct {field: @TypeOf(x)};
    }

...in which case the closure_capture instruction has access to a
runtime value only. In such case we preserve the type and use a
dummy runtime value.

closes #11292
2022-03-24 21:47:18 -07:00
..
2022-02-28 23:20:05 +01:00
2022-03-24 17:04:50 +01:00
2021-10-28 17:33:05 -07:00
2022-02-27 18:59:44 -05:00
2022-03-18 15:02:52 -07:00
2022-02-13 14:42:20 +02:00
2022-03-08 21:10:04 +01:00
2022-03-09 13:53:20 -07:00
2022-03-23 21:40:33 +01:00
2022-03-05 11:31:51 +01:00
2022-01-07 00:06:06 -05:00
2022-03-18 15:02:52 -07:00
2022-03-18 15:02:52 -07:00
2022-02-22 21:57:42 +01:00
2022-03-16 20:35:41 -07:00
2022-03-23 21:40:33 +01:00
2022-03-21 22:01:34 -04:00
2022-03-18 15:02:52 -07:00
2022-03-24 17:04:50 +01:00
2022-03-23 21:40:33 +01:00
2022-03-18 15:02:52 -07:00
2022-03-05 11:31:51 +01:00
2022-03-24 17:04:50 +01:00
2022-03-23 21:40:33 +01:00
2022-03-23 21:40:33 +01:00
2022-03-18 00:12:22 -07:00
2022-02-28 23:20:05 +01:00
2022-03-18 15:02:52 -07:00
2022-03-18 15:02:52 -07:00