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

8 lines
238 B
Solidity

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