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
jadengellermannequin opened this issue
Jul 14, 2016
· 4 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
The problem is that generic types can't get Objective-C categories at the moment, which means extensions can't add protocols or @objc members. These should definitely have proper errors, though.
I believe this has been resolved, as the given code produces an error in the Xcode 10 toolchain. @objc protocol Fooable {}class Foo<T> {}
extension Foo: Fooable {} // Conformance of generic class 'Foo<T>' to @objc protocol 'Fooable' cannot be in an extension
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
Swift 2.2 and Swift 3 b2; other versions untested, but presumably fail also
Additional Detail from JIRA
md5: 11c43ab459a5ddfe3d39d960cac1fdd2
is duplicated by:
Issue Description:
The following will crash the Swift compiler.
The text was updated successfully, but these errors were encountered: