mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fallback function has to be external: backwards-compatible changes.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
contract C {
|
||||
// Check that visibility is also enforced for the fallback function.
|
||||
function() {}
|
||||
}
|
||||
// ----
|
||||
// Warning: (90-103): No visibility specified. Defaulting to "public".
|
||||
Reference in New Issue
Block a user