solidity/test/libsolidity/syntaxTests/immutable/assembly.sol
2022-04-01 23:41:18 -05:00

12 lines
237 B
Solidity

contract C {
uint immutable x;
function f() public view {
uint t;
assembly {
t := x
}
}
}
// ----
// TypeError 3773: (118-119='x'): Assembly access to immutable variables is not supported.