diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-05-12 16:27:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-05-12 16:27:03 -0400 |
| commit | ff9f4fe6cf59085b726c096ef28ac080d7cdd742 (patch) | |
| tree | 2859760f82ec093858ca3bf365869d83cec8ad8f | |
| parent | 3c50c182a88609d4a8bbb16255ba56d414440f63 (diff) | |
Add TODO message
| -rw-r--r-- | typecheck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typecheck.c b/typecheck.c index c4184579..3b70e26e 100644 --- a/typecheck.c +++ b/typecheck.c @@ -548,6 +548,7 @@ 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); |
