solidity/test/libsolidity/syntaxTests/structs/calldata_assign.sol
2020-11-24 14:57:45 +01:00

8 lines
197 B
Solidity

pragma abicoder v2;
contract Test {
struct S { int a; }
function f(S calldata s) external { s.a = 4; }
}
// ----
// TypeError 4156: (114-117): Calldata structs are read-only.