aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/two_exact_functions.sol
blob: 957740d06a6ee60c53656247e8102239a4f7b965 (plain) (blame)
1
2
3
4
5
6
7
8
9
// 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: (189-246): Function with same name and arguments defined twice.