feat(argus): Identifier re-declaration error only if type mismatch
`ExprBuilder` throws an error for creating variables only if the type of the variable declaration doesn't match the previous declaration. The error message should be better clarified.
This commit is contained in:
parent
f8e570756c
commit
47003df4c0
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ pub enum Error {
|
|||
/// An identifier has been redeclared in a specification.
|
||||
///
|
||||
/// This is called mainly from [`expr::ExprBuilder`].
|
||||
#[error("redeclaration of identifier")]
|
||||
#[error("redeclaration of identifier with different type")]
|
||||
IdentifierRedeclaration,
|
||||
|
||||
/// An expression is provided with an insufficient number of arguments.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue