solidity/test/libsolidity/syntaxTests/freeFunctions/gas_value.sol
2022-04-01 23:41:18 -05:00

7 lines
197 B
Solidity

function fun() {
fun{gas: 1}();
fun{value: 1}();
}
// ----
// TypeError 2193: (21-32='fun{gas: 1}'): Function call options can only be set on external function calls or contract creations.