solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/423_using_interface.sol

11 lines
277 B
Solidity
Raw Normal View History

interface I {
function f();
}
contract C is I {
function f() public {
}
}
// ----
// Warning: (18-31): Functions in interfaces should be declared external.
// Warning: (18-31): No visibility specified. Defaulting to "public". In interfaces it defaults to external.