[SR-10714] Should have better diagnostic for "#else if" #53111
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
Additional Detail from JIRA
md5: eff0f8afe832c40b86072c7a0ab3413f
Issue Description:
Test case:
Diagnostics:
It'd be better to recognize the "if" after "#else" and suggest it be replaced with "#elseif", and then suppress the remaining diagnostics.
The text was updated successfully, but these errors were encountered: