solidity/test/libsolidity/semanticTests/underscore/as_function.sol

22 lines
343 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
// compileToEwasm: also
// ----
// _() -> 88
// g() -> 88
// h() -> 33