Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-6083] Unable to cast from a Objective-C generic to a concrete type #48638

Open
swift-ci opened this issue Oct 7, 2017 · 0 comments
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Oct 7, 2017

Previous ID SR-6083
Radar None
Original Reporter hgl (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: e860e266a475335cf3dfcbe091ddc948

Issue Description:

NSFetchedResultsController is the class from Core Data

class Controller: NSFetchedResultsController<NSManagedObject> {}

assign Controller a delegate, and in the delegate method:

func controllerWillChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>)

I can't cast controller back to Controller.

Discussion on swift-users: https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20171002/006374.html

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant