solidity/test/libsolidity/syntaxTests/parsing/two_exact_functions.sol
2020-07-06 19:22:52 +02:00

10 lines
415 B
Solidity

// with support of overloaded functions, during parsing,
// we can't determine whether they match exactly, however
// it will throw DeclarationError in following stage.
contract test {
function fun(uint a) public returns(uint r) { return a; }
function fun(uint a) public returns(uint r) { return a; }
}
// ----
// DeclarationError 1686: (189-246): Function with same name and parameter types defined twice.