| ... | @@ -344,6 +344,8 @@ test "generic instantiation of tagged union with only one field" { | ... | @@ -344,6 +344,8 @@ test "generic instantiation of tagged union with only one field" { |
| 344 | } | 344 | } |
| 345 | | 345 | |
| 346 | test "nested generic function" { | 346 | test "nested generic function" { |
| | 347 | if (builtin.zig_backend == .stage1) return error.SkipZigTest; |
| | 348 | |
| 347 | const S = struct { | 349 | const S = struct { |
| 348 | fn foo(comptime T: type, callback: *const fn (user_data: T) anyerror!void, data: T) anyerror!void { | 350 | fn foo(comptime T: type, callback: *const fn (user_data: T) anyerror!void, data: T) anyerror!void { |
| 349 | try callback(data); | 351 | try callback(data); |