Cope with constants without value in inline assembly.

This commit is contained in:
chriseth
2019-07-09 11:12:13 +02:00
parent 75eb67c3e0
commit 9cb9021c36
2 changed files with 36 additions and 16 deletions
@@ -0,0 +1,11 @@
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.