mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
wip
This commit is contained in:
parent
9e02537ebb
commit
0a9989e75f
7 changed files with 61 additions and 30 deletions
|
@ -70,7 +70,7 @@ pub fn constrain_decls(
|
|||
for decl in decls.iter().rev() {
|
||||
// NOTE: rigids are empty because they are not shared between top-level definitions
|
||||
match decl {
|
||||
Declaration::Declare(def) => {
|
||||
Declaration::Declare(def) | Declaration::Builtin(def) => {
|
||||
sharing::annotate_usage(&def.loc_expr.value, &mut var_usage);
|
||||
}
|
||||
Declaration::DeclareRec(defs) => {
|
||||
|
@ -87,7 +87,7 @@ pub fn constrain_decls(
|
|||
for decl in decls.iter().rev() {
|
||||
// NOTE: rigids are empty because they are not shared between top-level definitions
|
||||
match decl {
|
||||
Declaration::Declare(def) => {
|
||||
Declaration::Declare(def) | Declaration::Builtin(def) => {
|
||||
constraint = exists_with_aliases(
|
||||
aliases.clone(),
|
||||
Vec::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue