mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
feat: enhance assert casting
This commit is contained in:
parent
5eb680cb21
commit
839133863f
9 changed files with 96 additions and 149 deletions
|
@ -1407,6 +1407,7 @@ impl Call {
|
|||
"import" => Some(OperationKind::Import),
|
||||
"pyimport" | "py" | "__import__" => Some(OperationKind::PyImport),
|
||||
"Del" => Some(OperationKind::Del),
|
||||
"assert" => Some(OperationKind::Assert),
|
||||
_ => {
|
||||
if self.obj.ref_t().is_callable() {
|
||||
match self.attr_name.as_ref().map(|i| &i.inspect()[..]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue