mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
183 B
Solidity
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.
|