solidity/test/libsolidity/syntaxTests/underscore/in_function.sol
2020-11-03 15:22:57 +00:00

18 lines
309 B
Solidity

contract C {
function f() public pure returns (uint) {
uint _;
return _;
}
function g() public pure returns (uint) {
uint _ = 1;
return _;
}
function h() public pure {
_;
}
}
// ----
// DeclarationError 7576: (230-231): Undeclared identifier.