mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added error codes to SyntaxTest expectations (updated tests)
This commit is contained in:
@@ -4,4 +4,4 @@ contract C {
|
||||
uint private state;
|
||||
}
|
||||
// ----
|
||||
// Warning: (17-56): Documentation tag @title and @author is only allowed on contract definitions. It will be disallowed in 0.7.0.
|
||||
// Warning 8532: (17-56): Documentation tag @title and @author is only allowed on contract definitions. It will be disallowed in 0.7.0.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract C {
|
||||
function vote(uint id) public {}
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: No description given for param id
|
||||
// DocstringParsingError 9942: No description given for param id
|
||||
|
||||
@@ -3,4 +3,4 @@ abstract contract C {
|
||||
function vote(uint id) public {}
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: End of tag @param not found
|
||||
// DocstringParsingError 9222: End of tag @param not found
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ contract test {
|
||||
uint private state;
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: (18-47): Documentation tag "@return" is only allowed on public state-variables.
|
||||
// DocstringParsingError 9440: (18-47): Documentation tag "@return" is only allowed on public state-variables.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
uint private state;
|
||||
}
|
||||
// ----
|
||||
// Warning: (17-74): Documentation tag on non-public state variables will be disallowed in 0.7.0. You will need to use the @dev tag explicitly.
|
||||
// Warning 7816: (17-74): Documentation tag on non-public state variables will be disallowed in 0.7.0. You will need to use the @dev tag explicitly.
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ contract test {
|
||||
uint public state;
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: (18-137): Documentation tag "@return" is only allowed once on state-variables.
|
||||
// DocstringParsingError 5256: (18-137): Documentation tag "@return" is only allowed once on state-variables.
|
||||
|
||||
@@ -5,4 +5,4 @@ abstract contract C {
|
||||
function vote(uint id) public virtual returns (uint value);
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: (26-121): Documentation tag "@return value2 Some value 2" exceeds the number of return parameters.
|
||||
// DocstringParsingError 2604: (26-121): Documentation tag "@return value2 Some value 2" exceeds the number of return parameters.
|
||||
|
||||
@@ -11,4 +11,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (290-295): Only state variables can have a docstring. This will be disallowed in 0.7.0.
|
||||
// Warning 2837: (290-295): Only state variables can have a docstring. This will be disallowed in 0.7.0.
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ abstract contract C {
|
||||
function vote(uint id) public virtual returns (uint value);
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: (26-89): Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
// DocstringParsingError 5856: (26-89): Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
|
||||
@@ -7,5 +7,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: (17-101): Documented parameter "" not found in the parameter list of the function.
|
||||
// DocstringParsingError: (17-101): Documented parameter "_" not found in the parameter list of the function.
|
||||
// DocstringParsingError 3881: (17-101): Documented parameter "" not found in the parameter list of the function.
|
||||
// DocstringParsingError 3881: (17-101): Documented parameter "_" not found in the parameter list of the function.
|
||||
|
||||
@@ -7,5 +7,5 @@ abstract contract C {
|
||||
function unvote(uint id) public virtual returns (uint value);
|
||||
}
|
||||
// ----
|
||||
// DocstringParsingError: (26-89): Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
// DocstringParsingError: (159-188): Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
// DocstringParsingError 5856: (26-89): Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
// DocstringParsingError 5856: (159-188): Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
|
||||
Reference in New Issue
Block a user