fix: quantified subroutine subtyping bugs

This commit is contained in:
Shunsuke Shibayama 2023-02-22 02:40:51 +09:00
parent 4dcca2b06d
commit aa2cea60dd
28 changed files with 638 additions and 222 deletions

View file

@ -61,12 +61,19 @@ fn test_infer_types() -> Result<(), ()> {
}
#[test]
fn test_subtyping() -> Result<(), ()> {
fn test_refinement_subtyping() -> Result<(), ()> {
let context = Context::default_with_name("<module>");
context.test_refinement_subtyping()?;
Ok(())
}
#[test]
fn test_quant_subtyping() -> Result<(), ()> {
let context = Context::default_with_name("<module>");
context.test_quant_subtyping()?;
Ok(())
}
#[test]
fn test_instantiation_and_generalization() -> Result<(), ()> {
let context = Context::default_with_name("<module>");