| 1 | fn comptimeArray(comptime _: []const u8) void {} |
| 2 | fn bar() u8 { |
| 3 | return 123; |
| 4 | } |
| 5 | export fn entry() void { |
| 6 | const y = bar(); |
| 7 | comptimeArray(&.{y}); |
| 8 | } |
| 9 | |
| 10 | // error |
| 11 | // |
| 12 | // :7:19: error: unable to resolve comptime value |
| 13 | // :7:19: note: argument to comptime parameter must be comptime-known |
| 14 | // :1:18: note: parameter declared comptime here |