mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +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
|
@ -20,7 +20,7 @@ use roc_types::{
|
|||
get_member_lambda_sets_at_region, Content, Descriptor, GetSubsSlice, LambdaSet, Mark,
|
||||
OptVariable, Rank, Subs, SubsSlice, UlsOfVar, Variable,
|
||||
},
|
||||
types::{AliasKind, MemberImpl, Uls},
|
||||
types::{AliasKind, MemberImpl, Polarity, Uls},
|
||||
};
|
||||
use roc_unify::unify::{unify, Env as UEnv, Mode, MustImplementConstraints};
|
||||
|
||||
|
@ -584,6 +584,7 @@ fn compact_lambda_set<P: Phase>(
|
|||
t_f1,
|
||||
t_f2,
|
||||
Mode::LAMBDA_SET_SPECIALIZATION,
|
||||
Polarity::Pos,
|
||||
)
|
||||
.expect_success("ambient functions don't unify");
|
||||
trace_compact!(3iter_end. subs, t_f1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue