Skip to content

Commit

Permalink
Update unif to use new TypeEq trait
Browse files Browse the repository at this point in the history
  • Loading branch information
yannham committed Dec 20, 2024
1 parent e7192fd commit 25ae6e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/bytecode/typecheck/unif.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Types unification.
use super::*;
use super::{eq::TypeEq, *};

/// Unification variable or type constants unique identifier.
pub type VarId = usize;
Expand Down Expand Up @@ -1247,7 +1247,7 @@ impl<'ast> Unify<'ast> for UnifType<'ast> {
})
}
(TypeF::Contract((t1, env1)), TypeF::Contract((t2, env2)))
if eq::contract_eq(state.table.max_uvars_count(), &t1, &env1, &t2, &env2) =>
if t1.type_eq(&t2, &env1, &env2) =>
{
Ok(())
}
Expand Down

0 comments on commit 25ae6e7

Please sign in to comment.