mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Cope with constants without value in inline assembly.
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user