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,9 +1,8 @@
contract A {
function f() {
function f() public {
uint x = 3 < 0 ? 2 > 1 ? 2 : 1 : 7 > 2 ? 7 : 6;
}
}
// ----
// Warning: (17-93): No visibility specified. Defaulting to "public".
// Warning: (40-46): Unused local variable.
// Warning: (17-93): Function state mutability can be restricted to pure
// Warning: (47-53): Unused local variable.
// Warning: (17-100): Function state mutability can be restricted to pure