mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
360 B
Solidity
11 lines
360 B
Solidity
contract Test {
|
|
string constant x = "abefghijklmnopqabcdefghijklmnopqabcdefghijklmnopqabca";
|
|
function f() public {
|
|
// Even if this is made possible in the future, we should not allow assignment
|
|
// to elements of constant arrays.
|
|
x[0] = "f";
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9961: (261-265): Index access for string is not possible.
|