Xcode-Beta (6C107a): Bad error message when using Objective-C literals in Swift

Originator:segiddins
Number:rdar://19833424 Date Originated:13-Feb-2015 02:57 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-Beta (6C107a)
Classification:Feature (New) Reproducible:Always
 
Summary:
When accidentally preceding a literal with an ‘@‘, the error message is not helpful.

Steps to Reproduce:
Create a swift file with the following line and attempt to compile:
countElements(@"Hello")

Expected Results:
The error message suggests removing the ‘@‘ character

Actual Results:
The error message says “Expected ‘,’ separator”, and suggests adding a comma before the ‘@‘

Regression:
N/A

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!