Adjusts tests to expect type errors on default visibility.

This commit is contained in:
Erik Kundt
2018-07-17 18:03:35 +02:00
parent b5ecfbe5bc
commit 75bba5c9f0
7 changed files with 7 additions and 18 deletions
@@ -1,3 +1,3 @@
contract A { constructor() {} }
// ----
// Warning: (13-29): No visibility specified. Defaulting to "public".
// SyntaxError: (13-29): No visibility specified.
@@ -3,4 +3,5 @@ contract C {
function() {}
}
// ----
// SyntaxError: (90-103): No visibility specified.
// TypeError: (90-103): Fallback function must be defined as "external".
@@ -2,4 +2,4 @@ contract C {
function f() pure { }
}
// ----
// Warning: (17-38): No visibility specified. Defaulting to "public".
// SyntaxError: (17-38): No visibility specified.
@@ -1,6 +0,0 @@
pragma experimental "v0.5.0";
contract C {
function f() pure { }
}
// ----
// SyntaxError: (47-68): No visibility specified.
@@ -2,4 +2,5 @@ interface I {
function f();
}
// ----
// SyntaxError: (15-28): No visibility specified. Did you intend to add "public"?
// TypeError: (15-28): Functions in interfaces must be declared external.
@@ -1,7 +0,0 @@
pragma experimental "v0.5.0";
interface I {
function f();
}
// ----
// SyntaxError: (45-58): No visibility specified.
// TypeError: (45-58): Functions in interfaces must be declared external.