solidity/test/libsolidity/syntaxTests/bound/bound_all.sol
2021-04-20 17:38:29 +02:00

12 lines
258 B
Solidity

library L {
function g(function() internal returns (uint) _t) internal returns (uint) { return _t(); }
}
contract C {
using L for *;
function f() public returns (uint) {
return t.g();
}
function t() public pure returns (uint) { return 7; }
}
// ----