[SR-11713] Bad error message and no fixit stubs when conforming to ExpressibleByStringLiteral #54122
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
Environment
Xcode 11.2
Swift 5.1.2
MacOS 10.14.6
Additional Detail from JIRA
md5: f7ee4ff36006f5a278f81c4ac736becd
Issue Description:
When creating a new type that conforms to
ExpressibleByStringLiteral
(or extending an existing type to conform), there is initially a “does not conform” error with a fixit to add a typealias. After accepting that fixit and completing the typealias, I would expect another error with a fixit to add a stub for theinit(stringLiteral:)
method.However, instead of a “does not conform” error, there is a very different error and no fixit:
The text was updated successfully, but these errors were encountered: