mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
Move a comment
This commit is contained in:
parent
38ff22d122
commit
0406cea7f1
@ -12,11 +12,11 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
||||
let mut types = HashMap::with_capacity_and_hasher(NUM_BUILTIN_IMPORTS, default_hasher());
|
||||
|
||||
let mut add_type = |symbol, typ| {
|
||||
debug_assert!(!types.contains_key(&symbol));
|
||||
|
||||
// TODO instead of using Region::zero for all of these,
|
||||
// instead use the Region where they were defined in their
|
||||
// source .roc files! This can give nicer error messages.
|
||||
debug_assert!(!types.contains_key(&symbol));
|
||||
|
||||
types.insert(symbol, (typ, Region::zero()));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user