mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
error message investigation
This commit is contained in:
parent
b130f86fdf
commit
1471cd0db4
1 changed files with 10 additions and 0 deletions
|
@ -97,6 +97,7 @@ pub fn canonicalize_module_defs<'a>(
|
|||
let first_char = ident.as_inline_str().chars().next().unwrap();
|
||||
|
||||
if first_char.is_lowercase() {
|
||||
// this is a value definition
|
||||
let expr_var = var_store.fresh();
|
||||
|
||||
match scope.import(ident, symbol, region) {
|
||||
|
@ -116,6 +117,15 @@ pub fn canonicalize_module_defs<'a>(
|
|||
}
|
||||
}
|
||||
} else {
|
||||
// This is a type alias
|
||||
|
||||
// the same scheme as with identifiers won't work here, e.g.
|
||||
//
|
||||
// Task : Effect
|
||||
//
|
||||
// really is not the same as
|
||||
//
|
||||
// Task a : Effect a
|
||||
panic!("TODO add type aliases to type alias dictionary, based on exposed types");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue