mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
240 B
Solidity
12 lines
240 B
Solidity
contract C {
|
|
uint constant x;
|
|
function f() public pure {
|
|
assembly {
|
|
let c1 := x
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (17-32): Uninitialized "constant" variable.
|
|
// TypeError: (106-107): Constant has no value.
|