| ... | ... | @@ -4633,7 +4633,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool { |
| 4633 | 4633 | const address_space_src: LazySrcLoc = .{ .node_offset_var_decl_addrspace = 0 }; |
| 4634 | 4634 | const ty_src: LazySrcLoc = .{ .node_offset_var_decl_ty = 0 }; |
| 4635 | 4635 | const init_src: LazySrcLoc = .{ .node_offset_var_decl_init = 0 }; |
| 4636 | | const decl_tv = try sema.resolveInstValue(&block_scope, init_src, result_ref, undefined); |
| 4636 | const decl_tv = try sema.resolveInstValue(&block_scope, init_src, result_ref, "global variable initializer must be comptime-known"); |
| 4637 | 4637 | |
| 4638 | 4638 | // Note this resolves the type of the Decl, not the value; if this Decl |
| 4639 | 4639 | // is a struct, for example, this resolves `type` (which needs no resolution), |