CFE exhuastiveness checker confused by object patterns with private getter names #52041
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
P1
A high priority bug; for example, a single project is unusable or has many test failures
The following program is accepted by the analyzer but rejected by the CFE:
The CFE's error message is:
I believe the analyzer is correct. The switch should be considered exhaustive.
I suspect the problem has to do with the fact that the getter
_i
is private. If I rename it toi
, both the analyzer and the CFE accept the program.This is probably a severe enough issue that we'll want to cherry-pick a fix to the stable branch.
CC @johnniwinther
The text was updated successfully, but these errors were encountered: