aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/165_assigning_state_to_const_variable.sol
blob: 0de15dfb1c22f9a199959fde06e36e75072e44e1 (plain) (blame)
1
2
3
4
5
contract C {
    address constant x = msg.sender;
}
// ----
// TypeError: (38-48): Initial value for constant variable has to be compile-time constant.