aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/overloaded_functions.sol
blob: fe050d1b819a7744511d00cc6db731c8bc20148c (plain) (tree)
1
2
3
4
5
6
7
               

                                                                             

       

                                                                         
contract test {
    function fun(uint a) public returns(uint r) { return a; }
    function fun(uint a, uint b) public returns(uint r) { return a + b; }
}
// ----
// Warning: (17-74): Function state mutability can be restricted to pure
// Warning: (76-145): Function state mutability can be restricted to pure