mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
implement Dict/Set completely in roc
This commit is contained in:
parent
d889f1fda9
commit
f9d8e01561
6 changed files with 124 additions and 38 deletions
|
@ -4340,13 +4340,16 @@ fn canonicalize_and_constrain<'a>(
|
|||
.into_iter()
|
||||
.map(|(k, v)| (k, (true, v)))
|
||||
.collect();
|
||||
|
||||
for (name, alias) in module_output.scope.aliases {
|
||||
match aliases.entry(name) {
|
||||
Occupied(_) => {
|
||||
// do nothing
|
||||
}
|
||||
Vacant(vacant) => {
|
||||
if !name.is_builtin() || name.module_id() == ModuleId::ENCODE {
|
||||
if name == Symbol::DICT_DICT {
|
||||
vacant.insert((false, alias));
|
||||
} else if !name.is_builtin() || name.module_id() == ModuleId::ENCODE {
|
||||
vacant.insert((false, alias));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue