solidity/test/libsolidity/syntaxTests/fallback/default_visibility.sol

8 lines
272 B
Solidity

contract C {
// Check that visibility is also enforced for the fallback function.
fallback() {}
}
// ----
// SyntaxError: (90-103): No visibility specified. Did you intend to add "external"?
// TypeError: (90-103): Fallback function must be defined as "external".