solidity/test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type_is_not_fatal.sol

10 lines
199 B
Solidity
Raw Normal View History

2018-03-16 10:20:06 +00:00
contract C {
function (uint) internal payable returns (uint) x;
2018-03-16 10:33:05 +00:00
function g() public {
2018-03-16 10:20:06 +00:00
x = g;
}
}
2018-03-16 10:33:05 +00:00
// ----
// TypeError 7415: (17-66): Only external function types can be payable.