mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix wording of error message.
This commit is contained in:
@@ -16,7 +16,7 @@ contract B is A {
|
||||
function i(uint[] memory) public override payable {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 1686: (300-353): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (358-419): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (424-485): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (490-546): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (300-353): Function with same name and parameter types defined twice.
|
||||
// DeclarationError 1686: (358-419): Function with same name and parameter types defined twice.
|
||||
// DeclarationError 1686: (424-485): Function with same name and parameter types defined twice.
|
||||
// DeclarationError 1686: (490-546): Function with same name and parameter types defined twice.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract A {
|
||||
function f(uint[] memory) internal pure {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 1686: (17-61): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (17-61): Function with same name and parameter types defined twice.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract test {
|
||||
event A(uint i);
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 5883: (20-36): Event with same name and arguments defined twice.
|
||||
// DeclarationError 5883: (20-36): Event with same name and parameter types defined twice.
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ contract test {
|
||||
event A(uint i) anonymous;
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 5883: (20-36): Event with same name and arguments defined twice.
|
||||
// DeclarationError 5883: (20-36): Event with same name and parameter types defined twice.
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ contract test {
|
||||
event A(uint indexed i);
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 5883: (20-36): Event with same name and arguments defined twice.
|
||||
// DeclarationError 5883: (20-36): Event with same name and parameter types defined twice.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract C {
|
||||
function test(uint a) external {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 1686: (17-66): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (17-66): Function with same name and parameter types defined twice.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract test {
|
||||
function fun(uint a) public returns(uint r) { return a; }
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 1686: (189-246): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (189-246): Function with same name and parameter types defined twice.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract test {
|
||||
function fun() public { }
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 1686: (20-45): Function with same name and arguments defined twice.
|
||||
// DeclarationError 1686: (20-45): Function with same name and parameter types defined twice.
|
||||
|
||||
Reference in New Issue
Block a user