mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix shadowing/same-name warnings for later declarations
This commit is contained in:
@@ -11,6 +11,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (128-159): This declaration shadows an existing declaration.
|
||||
// Warning 6328: (207-227): CHC: Assertion violation happens here.
|
||||
// Warning 6328: (231-245): CHC: Assertion violation happens here.
|
||||
// Warning 5729: (214-218): Assertion checker does not yet implement this type of function call.
|
||||
|
||||
@@ -8,4 +8,5 @@ contract test {
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (31-37): This declaration shadows an existing declaration.
|
||||
// Warning 2519: (39-45): This declaration shadows an existing declaration.
|
||||
// TypeError 6995: (159-160): Duplicate named argument "a".
|
||||
|
||||
@@ -8,4 +8,5 @@ contract test {
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (31-37): This declaration shadows an existing declaration.
|
||||
// Warning 2519: (39-45): This declaration shadows an existing declaration.
|
||||
// TypeError 6160: (153-158): Wrong argument count for function call: 0 arguments given but expected 2.
|
||||
|
||||
@@ -8,4 +8,5 @@ contract test {
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (31-37): This declaration shadows an existing declaration.
|
||||
// Warning 2519: (39-45): This declaration shadows an existing declaration.
|
||||
// TypeError 6160: (153-162): Wrong argument count for function call: 1 arguments given but expected 2.
|
||||
|
||||
@@ -16,4 +16,5 @@ contract D is C {
|
||||
// ----
|
||||
// Warning 2519: (s1.sol:65-134): This declaration shadows an existing declaration.
|
||||
// Warning 2519: (s2.sol:85-155): This declaration shadows an existing declaration.
|
||||
// Warning 2519: (s2.sol:85-155): This declaration shadows an existing declaration.
|
||||
// DeclarationError 1686: (s2.sol:17-64): Function with same name and parameter types defined twice.
|
||||
|
||||
+1
@@ -5,5 +5,6 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (57-63): This declaration shadows an existing declaration.
|
||||
// Warning 2072: (57-63): Unused local variable.
|
||||
// Warning 2072: (75-81): Unused local variable.
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (73-79): This declaration shadows an existing declaration.
|
||||
// DeclarationError 2333: (91-97): Identifier already declared.
|
||||
// Warning 2519: (73-79): This declaration shadows an existing declaration.
|
||||
|
||||
Reference in New Issue
Block a user