implement Dict/Set completely in roc

This commit is contained in:
Folkert 2022-07-13 00:35:20 +02:00
parent d889f1fda9
commit f9d8e01561
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 124 additions and 38 deletions

View file

@ -328,15 +328,7 @@ pub fn canonicalize_module_defs<'a>(
panic!("TODO gracefully handle shadowing in imports.")
}
}
} else if [
Symbol::LIST_LIST,
Symbol::STR_STR,
Symbol::DICT_DICT,
Symbol::SET_SET,
Symbol::BOX_BOX_TYPE,
]
.contains(&symbol)
{
} else if [Symbol::LIST_LIST, Symbol::STR_STR, Symbol::BOX_BOX_TYPE].contains(&symbol) {
// These are not aliases but Apply's and we make sure they are always in scope
} else {
// This is a type alias or ability