solidity/test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol

9 lines
195 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract c {
function fun() public returns (uint r) {
uint _ = 8;
2018-05-17 07:04:39 +00:00
return _ + 1;
}
}
// ----
// Warning 2018: (17-105): Function state mutability can be restricted to pure