Xcode cannot expand default for Switch to implement Equatable
Originator: | Romain.pouclet | ||
Number: | rdar://33517582 | Date Originated: | 25-Jul-2017 02:47 PM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | 9beta4 |
Classification: | Other Bug | Reproducible: | Always |
Summary: When trying to implement Equatable for existing and new enum types, hoping to use the “expand default”. Steps to Reproduce: 1- Implement Equatable for an enum type 2- Use `default: return false` 3- Select the default case, right click, go to refactor > expand default Expected Results: I should see the implementation of the Equatable protocol Actual Results: I’m getting an error “Connection interrupted" Version: 9beta4 Notes: Sample project with file reproducing the errors: https://github.com/Palleas/radars-sample-projects/blob/master/ExpandDefaultSampleProject/ExpandDefaultSampleProject/JSONExtensions.swift
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!