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

@ -335,6 +335,12 @@ impl PartialOrd for Location {
}
}
impl Locational for Location {
fn loc(&self) -> Self {
*self
}
}
impl Location {
pub fn concat<L: Locational, R: Locational>(l: &L, r: &R) -> Self {
let l_loc = l.loc();