aboutsummaryrefslogtreecommitdiff
path: root/src/compile/fieldaccess.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 18:35:52 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 18:35:52 -0400
commit0d489659597f9d3e6b69f92d2ca001a8dd5bf6cd (patch)
tree2f382947025669ae0fe6e21207fd925db750f1d2 /src/compile/fieldaccess.c
parent7e3e245f6809946ea06ef1998bcabb7e0902fbd7 (diff)
Bugfix for debug logs with functions (not closures)
Diffstat (limited to 'src/compile/fieldaccess.c')
-rw-r--r--src/compile/fieldaccess.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compile/fieldaccess.c b/src/compile/fieldaccess.c
index 65c8f92b..033851a7 100644
--- a/src/compile/fieldaccess.c
+++ b/src/compile/fieldaccess.c
@@ -19,8 +19,7 @@ Text_t compile_field_access(env_t *env, ast_t *ast) {
if (f->field[0] == '_') {
if (!type_eq(env->current_type, info->type))
code_err(ast, "Fields that start with underscores are not "
- "accessible "
- "on types outside of the type definition.");
+ "accessible on outside of the type definition.");
}
binding_t *b = get_binding(info->env, f->field);
if (!b) code_err(ast, "I couldn't find the field '", f->field, "' on this type");