mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Materialize extension variable polarity in error type reporting
This commit is contained in:
parent
3c15ff4694
commit
4d48ea7c2f
12 changed files with 277 additions and 126 deletions
|
@ -16,6 +16,7 @@ use roc_solve::solve::Pools;
|
|||
use roc_solve::specialize::{compact_lambda_sets_of_vars, DerivedEnv, Phase};
|
||||
use roc_types::subs::{get_member_lambda_sets_at_region, Content, FlatType, LambdaSet};
|
||||
use roc_types::subs::{ExposedTypesStorageSubs, Subs, Variable};
|
||||
use roc_types::types::Polarity;
|
||||
use roc_unify::unify::MetaCollector;
|
||||
use roc_unify::unify::{Env, Mode, Unified};
|
||||
|
||||
|
@ -362,6 +363,7 @@ pub fn unify(
|
|||
left,
|
||||
right,
|
||||
Mode::EQ,
|
||||
Polarity::Pos,
|
||||
);
|
||||
|
||||
match unified {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue