solidity/test/libsolidity/syntaxTests/scoping/double_function_declaration.sol

7 lines
160 B
Solidity
Raw Normal View History

2018-03-15 23:47:12 +00:00
contract test {
function fun() public { }
function fun() public { }
}
// ----
// DeclarationError: Function with same name and arguments defined twice.