mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use quote function for all errors/warnings
This commit is contained in:
@@ -8,5 +8,5 @@ contract B is A {
|
||||
function f(uint256 x) public view returns(uint256) { return x; }
|
||||
}
|
||||
// ----
|
||||
// Warning: (A:14-78): Function state mutability can be restricted to pure
|
||||
// Warning: (B:31-95): Function state mutability can be restricted to pure
|
||||
// Warning: (A:14-78): Function state mutability can be restricted to "pure".
|
||||
// Warning: (B:31-95): Function state mutability can be restricted to "pure".
|
||||
|
||||
@@ -4,4 +4,4 @@ contract A {
|
||||
function f() public pure { x = 42; }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (SourceName:53-54): Function declared as pure, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
|
||||
// TypeError: (SourceName:53-54): Function declared as "pure", but this expression (potentially) modifies the state and thus requires non-payable (the default) or "payable".
|
||||
|
||||
@@ -7,5 +7,5 @@ contract B {
|
||||
function f(uint256 x) public view returns(uint256) { return x; }
|
||||
}
|
||||
// ----
|
||||
// Warning: (A:14-78): Function state mutability can be restricted to pure
|
||||
// Warning: (B:14-78): Function state mutability can be restricted to pure
|
||||
// Warning: (A:14-78): Function state mutability can be restricted to "pure".
|
||||
// Warning: (B:14-78): Function state mutability can be restricted to "pure".
|
||||
|
||||
Reference in New Issue
Block a user