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

8 lines
282 B
Solidity

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