mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Make sure to report error rather than descending as appropriate
This commit is contained in:
parent
3d2642b282
commit
3e83e42195
5 changed files with 72 additions and 60 deletions
|
@ -20,7 +20,7 @@ use roc_types::types::Polarity;
|
|||
use roc_unify::unify::MetaCollector;
|
||||
use roc_unify::unify::{Env, Mode, Unified};
|
||||
|
||||
pub use roc_solve::ability::Resolved;
|
||||
pub use roc_solve::ability::{ResolveError, Resolved};
|
||||
pub use roc_types::subs::instantiate_rigids;
|
||||
|
||||
pub mod storage;
|
||||
|
@ -161,7 +161,7 @@ pub fn resolve_ability_specialization(
|
|||
abilities: &AbilitiesView,
|
||||
ability_member: Symbol,
|
||||
specialization_var: Variable,
|
||||
) -> Option<Resolved> {
|
||||
) -> Result<Resolved, ResolveError> {
|
||||
let late_resolver = LateResolver { home, abilities };
|
||||
roc_solve::ability::resolve_ability_specialization(
|
||||
subs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue