aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-19 19:17:01 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-19 19:17:01 -0400
commit3ce239760eceeadd2e97d068445da49f0ad6cab3 (patch)
treee32c6b42ad151bfeae8c7c4fbcf75de6dc52bf0c /typecheck.c
parentd4bde89b5c0293312a6922dc8e801b7810eab50b (diff)
Remove TODO
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/typecheck.c b/typecheck.c
index e74396c1..942c981b 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -671,7 +671,6 @@ type_t *get_type(env_t *env, ast_t *ast)
if (!b) code_err(ast, "I couldn't find the field '%s' on this type", access->field);
return b->type;
}
- // TODO: support automatically generating closures for methods like in python (foo.method -> func(f:Foo, ...) f:method(...))
type_t *field_t = get_field_type(fielded_t, access->field);
if (!field_t)
code_err(ast, "%T objects don't have a field called '%s'", fielded_t, access->field);