Reimplement constant evaluator.

This commit is contained in:
Christian Parpart
2020-12-04 15:14:25 +01:00
committed by Leonardo Alt
parent 49bde69afa
commit c5d172c058
15 changed files with 245 additions and 96 deletions
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// TypeError 5210: (36-39): Cyclic constant definition (or maximum recursion depth exhausted).
// TypeError 5210: (17-44): Cyclic constant definition (or maximum recursion depth exhausted).
@@ -3,4 +3,4 @@ contract C {
uint[L] ids;
}
// ----
// TypeError 3208: (51-52): Array with fractional length specified.
// TypeError 5462: (51-52): Invalid array length, expected integer literal or constant expression.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError 5210: (37-40): Cyclic constant definition (or maximum recursion depth exhausted).
// TypeError 5210: (17-40): Cyclic constant definition (or maximum recursion depth exhausted).