mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
fix: quantified subroutine subtyping bugs
This commit is contained in:
parent
4dcca2b06d
commit
aa2cea60dd
28 changed files with 638 additions and 222 deletions
|
@ -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>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue