2018-07-17 17:41:40 +00:00
|
|
|
// State of the syntax checker has to be reset after the interface
|
|
|
|
// was visited. The suggested visibility for g() should not be external.
|
2018-07-10 20:43:02 +00:00
|
|
|
interface I {
|
|
|
|
function f();
|
|
|
|
}
|
2019-11-04 13:33:33 +00:00
|
|
|
abstract contract C {
|
2018-07-10 20:43:02 +00:00
|
|
|
function g();
|
|
|
|
}
|
|
|
|
// ----
|
2018-07-17 17:41:40 +00:00
|
|
|
// SyntaxError: (158-171): No visibility specified. Did you intend to add "external"?
|
2019-11-04 13:33:33 +00:00
|
|
|
// SyntaxError: (200-213): No visibility specified. Did you intend to add "public"?
|
2018-07-17 17:41:40 +00:00
|
|
|
// TypeError: (158-171): Functions in interfaces must be declared external.
|