Removed specialized errors related to constant state mutability

This commit is contained in:
Harikrishnan Mulackal
2020-07-14 12:42:47 +05:30
parent fd81885316
commit f73b25bb78
4 changed files with 7 additions and 20 deletions
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// ParserError 7698: (43-51): The state mutability modifier "constant" was removed in version 0.5.0. Use "view" or "pure" instead.
// ParserError 2314: (43-51): Expected '{' but got 'constant'
@@ -17,10 +17,7 @@ contract c6 {
function f() pure payable {}
}
contract c7 {
function f() pure constant {}
}
contract c8 {
function f() view constant {}
function f() view payable {}
}
// ----
// ParserError 9680: (39-46): State mutability already specified as "payable".
@@ -29,5 +26,4 @@ contract c8 {
// ParserError 9680: (180-184): State mutability already specified as "pure".
// ParserError 9680: (229-233): State mutability already specified as "payable".
// ParserError 9680: (275-282): State mutability already specified as "pure".
// ParserError 9680: (324-332): State mutability already specified as "pure".
// ParserError 9680: (374-382): State mutability already specified as "view".
// ParserError 9680: (324-331): State mutability already specified as "view".