feat: add Array.d.er/Bool.d.er/Nat.d.er

This commit is contained in:
Shunsuke Shibayama 2023-02-18 00:24:25 +09:00
parent 9a131ecc53
commit 3aeb63f51b
7 changed files with 134 additions and 15 deletions

View file

@ -1343,9 +1343,9 @@ impl HasType for Call {
#[inline]
fn ref_t(&self) -> &Type {
if let Some(attr) = self.attr_name.as_ref() {
attr.ref_t().return_t().unwrap()
attr.ref_t().return_t().unwrap_or(Type::FAILURE)
} else {
self.obj.ref_t().return_t().unwrap()
self.obj.ref_t().return_t().unwrap_or(Type::FAILURE)
}
}
#[inline]