| 1 | fn F(val: anytype) type { |
| 2 | _ = val; |
| 3 | return struct {}; |
| 4 | } |
| 5 | export fn entry() void { |
| 6 | var x: u32 = 0; |
| 7 | _ = &x; |
| 8 | _ = F(x); |
| 9 | } |
| 10 | |
| 11 | // error |
| 12 | // |
| 13 | // :8:11: error: unable to resolve comptime value |
| 14 | // :8:10: note: call to function with comptime-only return type 'type' is evaluated at comptime |
| 15 | // :1:20: note: return type declared here |
| 16 | // :8:10: note: types are not available at runtime |