solidity/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol

6 lines
131 B
Solidity

contract C {
function f() pure { }
}
// ----
// SyntaxError: (17-38): No visibility specified. Did you intend to add "public"?