Xcode-beta (7A176x): Unclear compiler error 'String' is not convertible to 'StringLiteralConvertible'
| Originator: | dieter.komendera | ||
| Number: | rdar://22282357 | Date Originated: | 14-Aug-2015 06:24 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A176x) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
This produces an error which doesn’t match what’s actually wrong:
let settingsButton = UIButton(.type: .Custom)
NSLayoutConstraint.constraintsWithVisualFormat("", options: nil, metrics: nil, views: ["settingsButton": settingsButton])
produces ’String' is not convertible to 'StringLiteralConvertible'
The actual error is that nil is passed for options, where [] should be passed.
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!