Skip to content

#1163 CIF type checker: add warning for variables that are effectively constant

  • Best to review per commit.
  • There are no false positives. There can be false negatives, since it doesn't detect all cases, like a variable initialized to 2 and getting assigned 1 + 1.
  • I changed the existing type checker tests to not get new warnings. It took quite some time. I therefore didn't do it for the nearly 600 other tests that do get new warnings. It would take way too much time to go prevent them one by one.

Closes #1163 (closed)

Merge request reports

Loading