mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: impl polymorphic type declaration
This commit is contained in:
parent
ea132e2345
commit
5052ebb077
10 changed files with 289 additions and 85 deletions
|
@ -782,7 +782,7 @@ impl<'c, 'q, 'l, L: Locational> Dereferencer<'c, 'q, 'l, L> {
|
|||
if self.ctx.supertype_of(&sub_t, &super_t) {
|
||||
Ok(sub_t)
|
||||
} else {
|
||||
Err(TyCheckErrors::from(TyCheckError::subtyping_error(
|
||||
Err(TyCheckErrors::from(TyCheckError::invariant_error(
|
||||
self.ctx.cfg.input.clone(),
|
||||
line!() as usize,
|
||||
&sub_t,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue