Require unimplemented functions to be virtual.

This commit is contained in:
Daniel Kirchner
2019-12-02 21:59:00 +01:00
parent 958ec98cbe
commit 05baa23e8a
44 changed files with 123 additions and 118 deletions
@@ -4,9 +4,9 @@ interface I {
function f();
}
abstract contract C {
function g();
function g() {}
}
// ----
// SyntaxError: (158-171): No visibility specified. Did you intend to add "external"?
// SyntaxError: (200-213): No visibility specified. Did you intend to add "public"?
// SyntaxError: (200-215): No visibility specified. Did you intend to add "public"?
// TypeError: (158-171): Functions in interfaces must be declared external.