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:
Anand Balakrishnan 2023-10-13 13:01:36 -07:00
parent f8e570756c
commit 47003df4c0

View file

@ -53,7 +53,7 @@ pub enum Error {
/// An identifier has been redeclared in a specification. /// An identifier has been redeclared in a specification.
/// ///
/// This is called mainly from [`expr::ExprBuilder`]. /// This is called mainly from [`expr::ExprBuilder`].
#[error("redeclaration of identifier")] #[error("redeclaration of identifier with different type")]
IdentifierRedeclaration, IdentifierRedeclaration,
/// An expression is provided with an insufficient number of arguments. /// An expression is provided with an insufficient number of arguments.