aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol
blob: a50855c0d83ed5bbd4fb37341d7bcb30d32f2df7 (plain) (blame)
1
2
3
4
5
6
7
8
contract c {
    function fun() public returns (uint r) {
        uint _ = 8;
        return _ + 1;
    }
}
// ----
// Warning: (17-105): Function state mutability can be restricted to pure