Merge branch 'main' into beta

This commit is contained in:
Shunsuke Shibayama 2022-09-19 10:45:09 +09:00
commit a9d4e5982b
8 changed files with 107 additions and 19 deletions

View file

@ -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);
}
}