mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Updates syntax tests to specify default visibility.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function f() pure { }
|
||||
}
|
||||
// ----
|
||||
// Warning: (17-38): No visibility specified. Defaulting to "public".
|
||||
@@ -0,0 +1,6 @@
|
||||
pragma experimental "v0.5.0";
|
||||
contract C {
|
||||
function f() pure { }
|
||||
}
|
||||
// ----
|
||||
// SyntaxError: (47-68): No visibility specified.
|
||||
@@ -1,6 +1,3 @@
|
||||
interface I {
|
||||
function f();
|
||||
function f() external;
|
||||
}
|
||||
// ----
|
||||
// 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.
|
||||
|
||||
Reference in New Issue
Block a user