mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
@@ -3,5 +3,5 @@ contract C {
|
||||
fallback() {}
|
||||
}
|
||||
// ----
|
||||
// SyntaxError 4937: (90-103): No visibility specified. Did you intend to add "external"?
|
||||
// TypeError 1159: (90-103): Fallback function must be defined as "external".
|
||||
// SyntaxError 4937: (90-103='fallback() {}'): No visibility specified. Did you intend to add "external"?
|
||||
// TypeError 1159: (90-103='fallback() {}'): Fallback function must be defined as "external".
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
function fallback() external pure {}
|
||||
}
|
||||
// ----
|
||||
// Warning 3445: (26-34): This function is named "fallback" but is not the fallback function of the contract. If you intend this to be a fallback function, use "fallback(...) { ... }" without the "function" keyword to define it.
|
||||
// Warning 3445: (26-34='fallback'): This function is named "fallback" but is not the fallback function of the contract. If you intend this to be a fallback function, use "fallback(...) { ... }" without the "function" keyword to define it.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract C {
|
||||
fallback() external {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 7301: (96-118): Only one fallback function is allowed.
|
||||
// DeclarationError 7301: (96-118='fallback() external {}'): Only one fallback function is allowed.
|
||||
|
||||
@@ -5,5 +5,5 @@ contract D is C {
|
||||
fallback() external {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 9456: (116-138): Overriding function is missing "override" specifier.
|
||||
// TypeError 9456: (116-138='fallback() external {}'): Overriding function is missing "override" specifier.
|
||||
// TypeError 4334: (17-91): Trying to override non-virtual function. Did you forget to add "virtual"?
|
||||
|
||||
@@ -8,6 +8,6 @@ contract F {
|
||||
fallback(bytes calldata) external returns (bytes calldata) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5570: (57-71): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (134-150): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (215-231): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (57-71='(bytes memory)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (134-150='(bytes calldata)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (215-231='(bytes calldata)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
|
||||
@@ -5,5 +5,5 @@ contract D {
|
||||
fallback(bytes calldata _input) external {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5570: (45-67): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (45-67='(bytes memory _output)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (131-131): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
function() external {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2915: (37-38): Expected a state variable declaration. If you intended this as a fallback function or a function to handle plain ether transactions, use the "fallback" keyword or the "receive" keyword instead.
|
||||
// ParserError 2915: (37-38='{'): Expected a state variable declaration. If you intended this as a fallback function or a function to handle plain ether transactions, use the "fallback" keyword or the "receive" keyword instead.
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
fallback() external returns (bytes memory, bytes memory) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5570: (45-73): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (45-73='(bytes memory, bytes memory)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
fallback() external returns (uint256) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5570: (45-54): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (45-54='(uint256)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
fallback() external returns (bytes memory) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5570: (45-59): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
// TypeError 5570: (45-59='(bytes memory)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
|
||||
|
||||
Reference in New Issue
Block a user