blob: 3f19ea3b201f87e11f4ac3b98ef73f21531a8d8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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: (261-265): Index access for string is not possible.
|