mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Updates syntax tests to specify default visibility.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
contract c {
|
||||
modifier mod1(uint a) { if (msg.sender == address(a)) _; }
|
||||
modifier mod2 { if (msg.sender == address(2)) _; }
|
||||
function f() mod1(7) mod2 { }
|
||||
function f() public mod1(7) mod2 { }
|
||||
}
|
||||
// ----
|
||||
// Warning: (135-164): No visibility specified. Defaulting to "public".
|
||||
// Warning: (135-164): Function state mutability can be restricted to view
|
||||
// Warning: (135-171): Function state mutability can be restricted to view
|
||||
|
||||
Reference in New Issue
Block a user