Updates syntax tests to specify default visibility.

This commit is contained in:
Erik Kundt
2018-06-29 16:26:18 +02:00
parent e289c36158
commit f3ca0685fe
45 changed files with 138 additions and 196 deletions
@@ -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