You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Editor code actions generate failwith("TODO"), which no longer exists #9102
Found by a bug hunt over the 16 commits from eb087382 to cd641cbc.
#9052 removed failwith from Pervasives. The exhaustive-switch and add-missing-cases code actions still fill new branches with failwith("TODO"), and that code now fails to compile:
At b123b7c3 the same code compiles with a deprecation warning.
The placeholder is built by Codegen.mk_fail_with_exp, which is used from type_utils.ml and codemod.ml. The analysis snapshots still expect it: tests/analysis_tests/tests/src/expected/ExhaustiveSwitch.res.txt and Codemod.res.txt.
Activity