Defaults to external visibility for interfaces.

This commit is contained in:
bitshift
2018-04-03 11:16:44 +02:00
committed by Erik Kundt
parent 3bb54e8bd5
commit 8fe1cfb12e
4 changed files with 24 additions and 12 deletions
@@ -0,0 +1,6 @@
interface I {
function f();
}
// ----
// Warning: Functions in interfaces should be declared external.
// Warning: No visibility specified. Defaulting to "external".
@@ -0,0 +1,7 @@
pragma experimental "v0.5.0";
interface I {
function f();
}
// ----
// SyntaxError: No visibility specified.
// TypeError: Functions in interfaces must be declared external.