Use quote function for all errors/warnings

This commit is contained in:
Mathias Baumann
2020-01-08 16:12:06 +01:00
parent 70a2902714
commit 593e2515e7
494 changed files with 1201 additions and 1157 deletions
@@ -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".