solidity/test/libsolidity/syntaxTests/inlineAssembly/constant_access_non_initialized.sol

12 lines
250 B
Solidity
Raw Normal View History

contract C {
uint constant x;
function f() public pure {
assembly {
let c1 := x
}
}
}
// ----
// TypeError 4266: (17-32): Uninitialized "constant" variable.
// TypeError 3224: (106-107): Constant has no value.