solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/166_assigning_state_to_const_variable_050.sol

8 lines
183 B
Solidity

pragma experimental "v0.5.0";
contract C {
address constant x = msg.sender;
}
// ----
// TypeError: (69-79): Initial value for constant variable has to be compile-time constant.