aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorjon lipstate <52809771+jon-lipstate@users.noreply.github.com>2023-05-30 08:23:28 -0700
committerGitHub <noreply@github.com>2023-05-30 08:23:28 -0700
commitb223bc0302b54bb0629bd94d0b16e0f0720b6682 (patch)
treeeaa5de636a3fd8f5b008270fbaff268f40769f8c /src/check_type.cpp
parentf5dcbf517b88d7479fa12d5f3b59183a447cae6f (diff)
parent3562a38f8cdd43792b6cdfd3327d16b65d25e5d0 (diff)
Merge branch 'odin-lang:master' into attr_error
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index dfe774f6b..bbfc25a12 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -135,7 +135,7 @@ gb_internal void check_struct_fields(CheckerContext *ctx, Ast *node, Slice<Entit
type = t_invalid;
}
if (is_type_untyped(type)) {
- if (is_type_untyped_undef(type)) {
+ if (is_type_untyped_uninit(type)) {
error(params[i], "Cannot determine parameter type from ---");
} else {
error(params[i], "Cannot determine parameter type from a nil");
@@ -473,7 +473,7 @@ gb_internal Type *check_record_polymorphic_params(CheckerContext *ctx, Ast *poly
type = t_invalid;
}
if (is_type_untyped(type)) {
- if (is_type_untyped_undef(type)) {
+ if (is_type_untyped_uninit(type)) {
error(params[i], "Cannot determine parameter type from ---");
} else {
error(params[i], "Cannot determine parameter type from a nil");
@@ -1528,7 +1528,7 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para
type = t_invalid;
}
if (is_type_untyped(type)) {
- if (is_type_untyped_undef(type)) {
+ if (is_type_untyped_uninit(type)) {
error(param, "Cannot determine parameter type from ---");
} else {
error(param, "Cannot determine parameter type from a nil");