mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix crash for double variable declaration in the same scope.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
contract test {
|
||||
function f() pure public {
|
||||
uint x;
|
||||
uint x;
|
||||
uint x;
|
||||
uint x;
|
||||
uint x;
|
||||
uint x;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (71-77): Identifier already declared.
|
||||
// DeclarationError: (87-93): Identifier already declared.
|
||||
// DeclarationError: (103-109): Identifier already declared.
|
||||
// DeclarationError: (119-125): Identifier already declared.
|
||||
// DeclarationError: (135-141): Identifier already declared.
|
||||
Reference in New Issue
Block a user