solidity/test/libsolidity/syntaxTests/types/bytesXX_index_assign.sol

9 lines
183 B
Solidity

contract C {
function f() public pure {
bytes32 x;
x[0] = 0x42;
}
}
// ----
// TypeError 4360: (71-75): Single bytes in fixed bytes arrays cannot be modified.