solidity/test/libsolidity/ABIJson/function_type.sol

22 lines
426 B
Solidity
Raw Normal View History

2019-07-02 15:30:54 +00:00
contract test {
function g(function(uint) external returns (uint) x) public {}
}
// ----
// :test
// [
// {
// "inputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "function (uint256) external returns (uint256)",
2019-07-02 15:30:54 +00:00
// "name": "x",
// "type": "function"
// }
// ],
// "name": "g",
// "outputs": [],
// "stateMutability": "nonpayable",
// "type": "function"
// }
// ]