mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
692 B
Solidity
18 lines
692 B
Solidity
|
interface I {
|
||
|
event A();
|
||
|
function f();
|
||
|
function g();
|
||
|
function();
|
||
|
}
|
||
|
contract C is I {
|
||
|
function f() public {
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (33-46): Functions in interfaces should be declared external.
|
||
|
// Warning: (51-64): Functions in interfaces should be declared external.
|
||
|
// Warning: (69-80): Functions in interfaces should be declared external.
|
||
|
// Warning: (33-46): No visibility specified. Defaulting to "public". In interfaces it defaults to external.
|
||
|
// Warning: (51-64): No visibility specified. Defaulting to "public". In interfaces it defaults to external.
|
||
|
// Warning: (69-80): No visibility specified. Defaulting to "public". In interfaces it defaults to external.
|