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








                                                                         
contract test {
    function fun(uint a) returns(uint r) { return a; }
    function fun(uint a, uint b) returns(uint r) { return a + b; }
}
// ----
// Warning: (17-67): No visibility specified. Defaulting to "public". 
// Warning: (69-131): No visibility specified. Defaulting to "public". 
// Warning: (17-67): Function state mutability can be restricted to pure
// Warning: (69-131): Function state mutability can be restricted to pure