[SR-5715] Invalid diagnostics and fixits referencing static value in nested exception #48285
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
type checker
Area → compiler: Semantic analysis
Environment
Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Swift version 4.0 (swiftlang-900.0.59 clang-900.0.34.2)
Additional Detail from JIRA
md5: 281e55968bd065aa6bc52027267ecada
Issue Description:
Consider these structs:
Adding a function to C:
Produces an invalid fix it:
Applying the fix it results in invalid code, and an invalid fixit:
Using a property produces the wrong fix it too:
But the error after applying it is correct:
The text was updated successfully, but these errors were encountered: