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

21 lines
319 B
Solidity

contract C {
function _() public pure returns (uint) {
return 88;
}
function g() public pure returns (uint){
return _();
}
function h() public pure returns (uint) {
_;
return 33;
}
}
// ====
// compileViaYul: also
// ----
// _() -> 88
// g() -> 88
// h() -> 33