diff options
| author | gingerBill <bill@gingerbill.org> | 2023-02-10 13:17:04 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-02-10 13:17:04 +0000 |
| commit | e6239ca3c26ecf5db53353a0495d8745ea612209 (patch) | |
| tree | be05fd822b9da4bb0e97e52e3ebb5024783d3fea /src/checker.cpp | |
| parent | 162628000f8e14c18e442d27efcee784b5ab988a (diff) | |
Warn on 'expand_to_tuple' has been replaced with 'expand_values'
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 303a2449e..bcaa11b8b 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1070,6 +1070,13 @@ gb_internal void init_universal(void) { } } } + { + BuiltinProcId id = BuiltinProc_expand_values; + String name = str_lit("expand_to_tuple"); + Entity *entity = alloc_entity(Entity_Builtin, nullptr, make_token_ident(name), t_invalid); + entity->Builtin.id = id; + add_global_entity(entity, builtin_pkg->scope); + } bool defined_values_double_declaration = false; for (auto const &entry : bc->defined_values) { |