mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Unify call's fx var with that of the enclosing function
This commit is contained in:
parent
7871ba182d
commit
5a5abe3bc5
23 changed files with 246 additions and 41 deletions
|
@ -101,6 +101,7 @@ impl FlatDecodable {
|
|||
| Content::FlexAbleVar(_, _)
|
||||
| Content::RigidAbleVar(_, _) => Err(UnboundVar),
|
||||
Content::LambdaSet(_) | Content::ErasedLambda => Err(Underivable),
|
||||
Content::Pure | Content::Effectful => Err(Underivable),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -135,6 +135,7 @@ impl FlatEncodable {
|
|||
| Content::FlexAbleVar(_, _)
|
||||
| Content::RigidAbleVar(_, _) => Err(UnboundVar),
|
||||
Content::LambdaSet(_) | Content::ErasedLambda => Err(Underivable),
|
||||
Content::Pure | Content::Effectful => Err(Underivable),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -146,6 +146,7 @@ impl FlatHash {
|
|||
| Content::FlexAbleVar(_, _)
|
||||
| Content::RigidAbleVar(_, _) => Err(UnboundVar),
|
||||
Content::LambdaSet(_) | Content::ErasedLambda => Err(Underivable),
|
||||
Content::Pure | Content::Effectful => Err(Underivable),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,9 @@ impl FlatInspectable {
|
|||
| Content::FlexAbleVar(_, _)
|
||||
| Content::RigidAbleVar(_, _)
|
||||
| Content::LambdaSet(_)
|
||||
| Content::ErasedLambda => {
|
||||
| Content::ErasedLambda
|
||||
| Content::Pure
|
||||
| Content::Effectful => {
|
||||
unreachable!("There must have been a bug in the solver, because we're trying to derive Inspect on a non-concrete type.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue