diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:01:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:01:19 -0400 |
| commit | 68bedd3c23757a8576e77f38e38ddcf9ecd26d19 (patch) | |
| tree | 86ce1610143efc43453f50d3413925797601c48a /src/types.c | |
| parent | 0815de981c683cac7dbac082ee14c11894089f31 (diff) | |
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'src/types.c')
| -rw-r--r-- | src/types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.c b/src/types.c index b4466b3b..897f1ee2 100644 --- a/src/types.c +++ b/src/types.c @@ -334,7 +334,7 @@ PUREFUNC bool can_promote(type_t *actual, type_t *needed) { return true; // [] -> [T] if (actual->tag == TableType && needed->tag == TableType && Match(actual, TableType)->key_type == NULL && Match(actual, TableType)->value_type == NULL) - return true; // {} -> {K=V} + return true; // {} -> {K:V} // Cross-promotion between tables with default values and without if (needed->tag == TableType && actual->tag == TableType) { |
