Browse Source

Fix typed `#caller_location` bug.

gingerBill 2 years ago
parent
commit
a53bff5645
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/check_type.cpp

+ 2 - 0
src/check_type.cpp

@@ -1309,6 +1309,8 @@ gb_internal ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_
 		init_core_source_code_location(ctx->checker);
 		init_core_source_code_location(ctx->checker);
 		param_value.kind = ParameterValue_Location;
 		param_value.kind = ParameterValue_Location;
 		o.type = t_source_code_location;
 		o.type = t_source_code_location;
+		o.mode = Addressing_Value;
+		o.expr = expr;
 
 
 		if (in_type) {
 		if (in_type) {
 			check_assignment(ctx, &o, in_type, str_lit("parameter value"));
 			check_assignment(ctx, &o, in_type, str_lit("parameter value"));