[SR-11016] 'try' code completion error #53406
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
Attachment: Download
Environment
Xcode Version 10.2.1 (10E1001)
MacOS Version 10.14.4 (18E226)
Additional Detail from JIRA
md5: fae355600a275421afb70d2b23cca5d0
Issue Description:
Bug description
With the following delegate declaration:
If I were to call the delegate's function somewhere else without the try prefix I would get the following compiler error:
When I select the "use try" option, it interpolates it in-between the delegate and the function, resulting in the following string.
What we really want is for it to put the try before the delegate call:
Help Me Get Started
This is my first bug report and I would like to solve it as my first contribution. I got set up at try! Swift San Jose, so I'm ready to dive into the code, solve it, and make a PR.
My question for anyone reading this. Where in the language would you recommend I start looking for this? If I had a general direction I would dive into it and see if I can get this fixed!
The text was updated successfully, but these errors were encountered: