Properly handle assignments of immutables at declaration.

This commit is contained in:
Daniel Kirchner
2020-04-02 08:35:22 +02:00
parent 82f57f0465
commit 77ea896b68
4 changed files with 14 additions and 2 deletions
@@ -0,0 +1,8 @@
contract A {
uint8 immutable a = 2;
function f() public view returns (uint) {
return a;
}
}
// ----
// f() -> 2