No type-mismatch error in fewer-braces code when using context function #20563
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
Compiler version
3.4.2
Minimized example
Output Error/Warning message
Why this Error/Warning was not helpful
There is no information about type-mismatch error that causes actual compilation error. Replacing fewer-braces block with braces
Produces 2 error messages:
Suggested improvement
It should either report both messages or report only type mismatch error.
Case 2
Removing local variable makes the code report only missing implicit, even when using braces:
The text was updated successfully, but these errors were encountered: