Move a comment

This commit is contained in:
Richard Feldman 2020-02-12 23:35:24 -05:00 committed by Folkert
parent 38ff22d122
commit 0406cea7f1

View File

@ -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()));
};