solidity/test/libsolidity/syntaxTests/visibility/interface/function_default.sol

7 lines
197 B
Solidity

interface I {
function f();
}
// ----
// SyntaxError: (15-28): No visibility specified. Did you intend to add "external"?
// TypeError: (15-28): Functions in interfaces must be declared external.