Fix reads checks for immutable variables.

This commit is contained in:
chriseth
2020-08-28 15:24:40 +02:00
parent dbe0518cd2
commit 8b564a7be7
20 changed files with 65 additions and 29 deletions
@@ -6,5 +6,4 @@ contract C {
}
}
// ----
// TypeError 1581: (76-77): Immutable variables can only be initialized inline or assigned directly in the constructor.
// TypeError 1574: (76-77): Immutable state variable already initialized.
// TypeError 1581: (76-77): Cannot write to immutable here: Immutable variables can only be initialized inline or assigned directly in the constructor.