2019-07-09 09:11:40 +00:00
|
|
|
contract C {
|
|
|
|
uint constant x;
|
|
|
|
function f() public pure {
|
|
|
|
assembly {
|
|
|
|
let c1 := x
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 4266: (17-32): Uninitialized "constant" variable.
|
|
|
|
// TypeError 3224: (106-107): Constant has no value.
|