aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-05-26 12:17:03 +0100
committergingerBill <bill@gingerbill.org>2024-05-26 12:17:03 +0100
commit64bdb3a09770b96afccd3b375b5c91214e97415b (patch)
tree0975ec5ec78a9bb0fb1c130fd17b5c236f0938fd /src
parent590db0838a575913cc88e17f9bc7a8e84aaa4d04 (diff)
Fix #3630 (first part)
Diffstat (limited to 'src')
-rw-r--r--src/check_expr.cpp2
-rw-r--r--src/check_type.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 5d4d6c73b..8672941c1 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -1805,7 +1805,7 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
case Entity_ImportName:
if (!allow_import_name) {
- error(n, "Use of import '%.*s' not in selector", LIT(name));
+ error(n, "Use of import name '%.*s' not in the form of 'x.y'", LIT(name));
}
return e;
case Entity_LibraryName:
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 9381443fc..7ed657bee 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1595,7 +1595,7 @@ gb_internal bool is_expr_from_a_parameter(CheckerContext *ctx, Ast *expr) {
return is_expr_from_a_parameter(ctx, lhs);
} else if (expr->kind == Ast_Ident) {
Operand x= {};
- Entity *e = check_ident(ctx, &x, expr, nullptr, nullptr, false);
+ Entity *e = check_ident(ctx, &x, expr, nullptr, nullptr, true);
if (e->flags & EntityFlag_Param) {
return true;
}