mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Update instantiate.rs
This commit is contained in:
parent
d336dffba7
commit
5b8715af27
1 changed files with 3 additions and 3 deletions
|
@ -1073,9 +1073,9 @@ impl Context {
|
|||
TokenKind::SubtypeOf => Constraint::new_subtype_of(
|
||||
self.instantiate_typespec(&spec.t_spec, None, tv_cache, mode, true)?,
|
||||
),
|
||||
TokenKind::SupertypeOf => {
|
||||
return type_feature_error!(self, spec.loc(), "supertype of");
|
||||
}
|
||||
TokenKind::SupertypeOf => Constraint::new_supertype_of(
|
||||
self.instantiate_typespec(&spec.t_spec, None, tv_cache, mode, true)?,
|
||||
),
|
||||
TokenKind::Colon => Constraint::new_type_of(self.instantiate_typespec(
|
||||
&spec.t_spec,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue