Xcode 6 (6A254o): Swift code completion incorrect when passing an interpolated string to a function

Originator:Greiner.Mike
Number:rdar://17623832 Date Originated:2014-07-10
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6 (6A254o)
Classification:Other Bug Reproducible:Always
 
Code completion attempts to incorrectly insert a double quote at the end of a line when an interpolated string is passed to a function.

Steps to Reproduce:
This one is hard to describe. Please see the video at https://dl.dropboxusercontent.com/u/89457307/Radar%20Sample%20Projects/code-completion.mov . Note the additional double quote (“) added by code completion to the end of the line being typed.

Expected Results:
No double quote is added to the end of the line

Actual Results:
An extra double quote is added to the end of the line resulting in an invalid Swift statement.

Regression:
No

Notes:
The workaround is to escape the completion or delete the double quote, but this gets annoying.
I used the println function to demonstrate this but it is reproducible with any function that accepts a string as a parameter.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!