mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-24 13:34:52 +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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue