solidity/test/libsolidity/syntaxTests/fallback/view_modifier.sol
2018-05-09 15:07:47 +02:00

7 lines
154 B
Solidity

contract C {
uint x;
function() view { x = 2; }
}
// ----
// TypeError: (29-55): Fallback function must be payable or non-payable, but is "view".