[SR-13256] Diagnostic is not consistent with changing source code #55696
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
Additional Detail from JIRA
md5: 1babd992aab85f7829f313bfbec1447e
Issue Description:
Hi team,
The below line produces the expected diagnostic
expected member name or constructor call after type name
I didn't notice this diagnostic in VSCode (where errors aren't highlighted enough) I continued with the below code. The diagnostic for Dictionary initialization is changed now
type of expression is ambiguous without more context
I further modified code below to having a for loop with completely independent expression
which produces again the same diagnostic
type of expression is ambiguous without more context
Shouldn't the diagnostic be consistent for a line not changed (here Dictionary initialization) despite surrounding lines changing and that too not related to the initialization in question?
The text was updated successfully, but these errors were encountered: