-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itself
Description
| Previous ID | SR-2708 |
| Radar | None |
| Original Reporter | courteouselk (JIRA User) |
| Type | Bug |
Environment
XCode Version 8.0 (8A218a)
Additional Detail from JIRA
| Votes | 11 |
| Component/s | Compiler |
| Labels | Bug |
| Assignee | None |
| Priority | Medium |
md5: 2fa4d679d5ba96de70dc71c058d5ab46
relates to:
- SR-3328 Cannot extend PHFetchResult to conform to Sequence in Swift 3
Issue Description:
ObjC:
@interface MySet<T : id<NSCopying>> : NSObject
@endSwift:
class Foo { }
struct Bar { }
extension MySet {
func foo() -> Foo { return Foo() }
func bar() -> Bar { return Bar() }
}Both of the extension methods result in "Extension of a generic Objective-C class cannot access the class's generic parameters at runtime". However, neither really does anything like that (at least not explicitly).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itself