Fix FP for `invalid-name` on module-level constant with multiple branches (#10677)

5 files changed