mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-21 12:05:27 +00:00
Except operator cases from delete error rule
This commit is contained in:
parent
0b331cc916
commit
16d34ad5d2
1 changed files with 3 additions and 0 deletions
|
@ -852,6 +852,9 @@ impl Compiler {
|
||||||
self.compile_delete(element)?;
|
self.compile_delete(element)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ast::ExprKind::BinOp { .. } | ast::ExprKind::UnaryOp { .. } => {
|
||||||
|
return Err(self.error(CompileErrorType::Delete("expression")))
|
||||||
|
}
|
||||||
_ => return Err(self.error(CompileErrorType::Delete(expression.node.name()))),
|
_ => return Err(self.error(CompileErrorType::Delete(expression.node.name()))),
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue