solidity/test/libsolidity/syntaxTests/immutable/assembly.sol

12 lines
228 B
Solidity
Raw Normal View History

2020-02-27 15:13:55 +00:00
contract C {
uint immutable x;
function f() public view {
uint t;
assembly {
t := x
}
}
}
// ----
// TypeError: (118-119): Assembly access to immutable variables is not supported.