solidity/test/libsolidity/syntaxTests/immutable/non-value_type.sol
2020-03-12 17:11:24 +01:00

6 lines
120 B
Solidity

contract C {
uint[] immutable x;
}
// ----
// TypeError: (17-35): Immutable variables cannot have a non-value type.