You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-4315 Xcode 8.3 compiler crashes on generic subclass init
Issue Description:
When you have a generics class inheriting from another generics class, and there is a where constraint on the subclass, the compiler prevents casting between subclass and superclass.
Eg. a class signature like this: class Processor<U: Input, T>: Provider<T> where T == U.OutputType
You can no longer cast between Provider and Processor
This is different from the behaviour in Swift 3.0.
Attached project that compiles and runs in Xcode 8.2.1 using Swift 3.0, but fails in Xcode 8.3.1 using Swift 3.1. Comments in the sample project describe the errors seen.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Xcode 8.3.1
Toolchain Swift 3.1
Additional Detail from JIRA
md5: 87cd2fc021e331aaba3cd65d473be5ae
duplicates:
Issue Description:
When you have a generics class inheriting from another generics class, and there is a
where
constraint on the subclass, the compiler prevents casting between subclass and superclass.Eg. a class signature like this:
class Processor<U: Input, T>: Provider<T> where T == U.OutputType
You can no longer cast between
Provider
andProcessor
This is different from the behaviour in Swift 3.0.
Attached project that compiles and runs in Xcode 8.2.1 using Swift 3.0, but fails in Xcode 8.3.1 using Swift 3.1. Comments in the sample project describe the errors seen.
The text was updated successfully, but these errors were encountered: