aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorWes Hardee <weshardee@gmail.com>2022-07-09 18:09:21 -0500
committerGitHub <noreply@github.com>2022-07-09 18:09:21 -0500
commit00739bf06dc73a88a320baec01a3844fbf9f59a9 (patch)
tree157cca02510cd90f6c092ae99c50056342bc7532 /src/check_type.cpp
parent23842a8950be99afca4f4180aca95a7c2da771dc (diff)
parente8148055ad78489832c55aab9b81edd694440d63 (diff)
Merge branch 'odin-lang:master' into master
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index fc5b7aed7..bc89a9be9 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1240,7 +1240,7 @@ Type *determine_type_from_polymorphic(CheckerContext *ctx, Type *poly_type, Oper
if (!is_operand_value(operand)) {
if (show_error) {
gbString pts = type_to_string(poly_type);
- gbString ots = type_to_string(operand.type);
+ gbString ots = type_to_string(operand.type, true);
defer (gb_string_free(pts));
defer (gb_string_free(ots));
error(operand.expr, "Cannot determine polymorphic type from parameter: '%s' to '%s'", ots, pts);
@@ -1253,7 +1253,7 @@ Type *determine_type_from_polymorphic(CheckerContext *ctx, Type *poly_type, Oper
}
if (show_error) {
gbString pts = type_to_string(poly_type);
- gbString ots = type_to_string(operand.type);
+ gbString ots = type_to_string(operand.type, true);
defer (gb_string_free(pts));
defer (gb_string_free(ots));
error(operand.expr, "Cannot determine polymorphic type from parameter: '%s' to '%s'", ots, pts);