solidity/test/libsolidity/syntaxTests/immutable/assembly.sol
2020-03-12 17:11:24 +01:00

12 lines
228 B
Solidity

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.