mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
fix: reduce unreachable
s
This commit is contained in:
parent
0152e368ab
commit
072d62f7b3
5 changed files with 55 additions and 21 deletions
|
@ -4159,6 +4159,13 @@ impl Signature {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn t_spec_op_mut(&mut self) -> Option<&mut TypeSpecWithOp> {
|
||||
match self {
|
||||
Self::Var(v) => v.t_spec.as_mut(),
|
||||
Self::Subr(c) => c.return_t_spec.as_mut(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_const(&self) -> bool {
|
||||
match self {
|
||||
Self::Var(var) => var.is_const(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue