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

10 lines
253 B
Solidity
Raw Normal View History

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