fix: refinement types bugs

This commit is contained in:
Shunsuke Shibayama 2023-03-03 13:44:05 +09:00
parent 5c6ea316f5
commit 1c8da7f049
15 changed files with 178 additions and 168 deletions

View file

@ -1,5 +1,4 @@
//! test module for `Context`
use erg_common::set;
use erg_common::traits::StructuralEq;
use erg_common::Str;
@ -33,7 +32,7 @@ impl Context {
let rhs = refinement(
var.clone(),
Type::Int,
set! { Predicate::eq(var, TyParam::value(1)) },
Predicate::eq(var, TyParam::value(1)),
);
if self.supertype_of(&lhs, &rhs) {
Ok(())