2018-05-08 11:08:52 +00:00
|
|
|
contract C {
|
|
|
|
uint x;
|
2019-09-09 16:22:02 +00:00
|
|
|
fallback() external view { x = 2; }
|
2018-05-08 11:08:52 +00:00
|
|
|
}
|
|
|
|
// ----
|
2018-06-28 16:08:45 +00:00
|
|
|
// TypeError: (29-64): Fallback function must be payable or non-payable, but is "view".
|