mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-03 05:54:33 +00:00
Merge branch 'main' into beta
This commit is contained in:
commit
a9d4e5982b
8 changed files with 107 additions and 19 deletions
|
@ -1089,13 +1089,13 @@ impl Context {
|
|||
}
|
||||
}
|
||||
Type::Quantified(_) => {
|
||||
if let Some(res) = self.get_nominal_type_ctx(&mono("QuantifiedFunction")) {
|
||||
if let Some(res) = self.get_nominal_type_ctx(&mono("QuantifiedFunc")) {
|
||||
return Some(res);
|
||||
}
|
||||
}
|
||||
Type::Subr(_subr) => match _subr.kind {
|
||||
SubrKind::Func => {
|
||||
if let Some(res) = self.get_nominal_type_ctx(&mono("Function")) {
|
||||
if let Some(res) = self.get_nominal_type_ctx(&mono("Func")) {
|
||||
return Some(res);
|
||||
}
|
||||
}
|
||||
|
@ -1157,7 +1157,7 @@ impl Context {
|
|||
}
|
||||
}
|
||||
Type::Quantified(_) => {
|
||||
if let Some(res) = self.get_mut_nominal_type_ctx(&mono("QuantifiedFunction")) {
|
||||
if let Some(res) = self.get_mut_nominal_type_ctx(&mono("QuantifiedFunc")) {
|
||||
return Some(res);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue