mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 10:23:20 +00:00
feat: add Array.d.er
/Bool.d.er
/Nat.d.er
This commit is contained in:
parent
9a131ecc53
commit
3aeb63f51b
7 changed files with 134 additions and 15 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue