Swift 3.0 migrator custom struct initializers replaced with self.dynamicType
| Originator: | keithbsmiley | ||
| Number: | rdar://26887043 | Date Originated: | 19-Jun-2016 23:45 |
| Status: | Duplicate of 26642062 (open) | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 8 beta 1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When migrating our codebase from Swift 2.2 -> Swift 3.0 we had a few initializer in structs that called other initializers which were replaced with `self.dynamicType.init(...` where we previously just had `self.init(...` Steps to Reproduce: 1. Define a Swift struct with multiple initializers 2. Call one initializer from another 3. Migrate Expected Results: The initializers are left untouched. Actual Results: The `self.init(` call is replaced with `self.dynamicType.init(`. Version: Xcode 8 beta 1 Notes: That this behavior is especially strange since `self.dynamicType` doesn't make sense for Swift structs regardless.
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!