mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
switching constraint order fixes things
This commit is contained in:
parent
557c3987e0
commit
2756c9af35
5 changed files with 74 additions and 106 deletions
|
@ -2527,13 +2527,6 @@ pub fn constrain_decls(
|
|||
|
||||
match tag {
|
||||
Value => {
|
||||
constraint = add_host_annotation(
|
||||
types,
|
||||
constraints,
|
||||
declarations.host_exposed_annotations.get(&index),
|
||||
constraint,
|
||||
);
|
||||
|
||||
constraint = constrain_value_def(
|
||||
types,
|
||||
constraints,
|
||||
|
@ -2542,15 +2535,15 @@ pub fn constrain_decls(
|
|||
index,
|
||||
constraint,
|
||||
);
|
||||
}
|
||||
Function(function_def_index) => {
|
||||
|
||||
constraint = add_host_annotation(
|
||||
types,
|
||||
constraints,
|
||||
declarations.host_exposed_annotations.get(&index),
|
||||
constraint,
|
||||
);
|
||||
|
||||
}
|
||||
Function(function_def_index) => {
|
||||
constraint = constrain_function_def(
|
||||
types,
|
||||
constraints,
|
||||
|
@ -2560,6 +2553,13 @@ pub fn constrain_decls(
|
|||
function_def_index,
|
||||
constraint,
|
||||
);
|
||||
|
||||
constraint = add_host_annotation(
|
||||
types,
|
||||
constraints,
|
||||
declarations.host_exposed_annotations.get(&index),
|
||||
constraint,
|
||||
);
|
||||
}
|
||||
Recursive(_) | TailRecursive(_) => {
|
||||
constraint = add_host_annotation(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue