solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/416_interface_function_bodies.sol

8 lines
208 B
Solidity

interface I {
function f() public {
}
}
// ----
// TypeError: (18-45): Functions in interfaces cannot have an implementation.
// Warning: (18-45): Functions in interfaces should be declared external.