mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Allow ignored defs with an effectful RHS
This commit is contained in:
parent
175a2b5683
commit
c9f001b041
13 changed files with 136 additions and 126 deletions
|
@ -856,12 +856,12 @@ fn solve(
|
|||
solve_suffix_fx(env, problems, *kind, actual, region);
|
||||
state
|
||||
}
|
||||
EffectfulStmt(variable, region) => {
|
||||
ExpectEffectful(variable, reason, region) => {
|
||||
let content = env.subs.get_content_without_compacting(*variable);
|
||||
|
||||
match content {
|
||||
Content::Pure | Content::FlexVar(_) => {
|
||||
let problem = TypeError::PureStmt(*region);
|
||||
let problem = TypeError::ExpectedEffectful(*region, *reason);
|
||||
problems.push(problem);
|
||||
|
||||
state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue