Adds review suggestions.

This commit is contained in:
Erik Kundt 2018-07-02 11:44:16 +02:00
parent f3ca0685fe
commit 1b008c62a1
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,6 @@
contract C { contract C {
// Check that visibility is also enforced for the fallback function. // Check that visibility is also enforced for the fallback function.
function() public {} function() {}
} }
// ----
// Warning: (90-103): No visibility specified. Defaulting to "public".

View File

@ -1,3 +1,6 @@
interface I { interface I {
function f() external; function f();
} }
// ----
// Warning: (15-28): Functions in interfaces should be declared external.
// Warning: (15-28): No visibility specified. Defaulting to "public". In interfaces it defaults to external.