mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-25 23:43:48 +00:00
Move unexpected params warning to solve
This commit is contained in:
parent
63e722f61d
commit
0cbb352a89
18 changed files with 115 additions and 169 deletions
|
@ -1472,11 +1472,12 @@ fn solve(
|
|||
|
||||
state
|
||||
}
|
||||
(None, Some(_)) | (None, None) => {
|
||||
// Module does not expect params.
|
||||
// If provided still, canonicalization will produce a warning.
|
||||
(None, Some(_)) => {
|
||||
problems.push(TypeError::UnexpectedImportParams(*region, *module_id));
|
||||
|
||||
state
|
||||
}
|
||||
(None, None) => state,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue