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
@@ -0,0 +1,5 @@
contract C {
function f() pure { }
}
// ----
// Warning: (17-38): No visibility specified. Defaulting to "public".
@@ -0,0 +1,6 @@
pragma experimental "v0.5.0";
contract C {
function f() pure { }
}
// ----
// SyntaxError: (47-68): No visibility specified.
@@ -1,6 +1,3 @@
interface I {
function f();
function f() external;
}
// ----
// Warning: (15-28): Functions in interfaces should be declared external.
// Warning: (15-28): No visibility specified. Defaulting to "public". In interfaces it defaults to external.