mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +00:00
Fix a refinement + union types bug
This commit is contained in:
parent
188f8ad965
commit
6cb3231845
12 changed files with 144 additions and 101 deletions
|
@ -21,7 +21,7 @@ enum Sequence {
|
|||
|
||||
// TODO: these should not be in Context
|
||||
impl Context {
|
||||
fn readable_type(typ: &Type) -> Type {
|
||||
pub(crate) fn readable_type(typ: &Type) -> Type {
|
||||
match typ {
|
||||
Type::FreeVar(fv) if fv.constraint_is_sandwiched() => {
|
||||
let (sub, sup) = fv.get_subsup().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue