mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
243 B
Solidity
12 lines
243 B
Solidity
|
pragma experimental "v0.5.0";
|
||
|
contract test {
|
||
|
uint constant x = 1;
|
||
|
function f() public {
|
||
|
assembly {
|
||
|
let y := x
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (137-138): Constant variables not supported by inline assembly.
|