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

9 lines
177 B
Solidity

contract c {
function fun() public returns (uint r) {
uint _ = 8;
return _ + 1;
}
}
// ----
// DeclarationError 3726: (66-72): The name "_" is reserved.