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

7 lines
174 B
Solidity

contract test {
function fun() public { }
function fun() public { }
}
// ----
// DeclarationError 1686: (20-45): Function with same name and arguments defined twice.