Parsing of immutable state variable.

This commit is contained in:
chriseth
2020-03-12 17:11:24 +01:00
parent f8f18f2e55
commit fa148f2483
17 changed files with 84 additions and 12 deletions
@@ -0,0 +1,11 @@
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.