mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removed specialized errors related to constant state mutability
This commit is contained in:
@@ -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".
|
||||
|
||||
Reference in New Issue
Block a user