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-8918] UserDefaults warning: conditional cast from 'Any' to 'AnyObject' always succeeds #3622

Closed
kevints mannequin opened this issue Oct 5, 2018 · 3 comments
Closed
Assignees

Comments

@kevints
Copy link
Mannequin

kevints mannequin commented Oct 5, 2018

Previous ID SR-8918
Radar None
Original Reporter @kevints
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

md5: efa935c1a31291273eb9a48a936d656f

Issue Description:

[301/334] CompileSwift: Foundation/UserDefaults.swift
Foundation/UserDefaults.swift:18:27: warning: conditional cast from 'Any' to 'AnyObject' always succeeds
    if let object = value as? AnyObject {
                          ^
@belkadan
Copy link

belkadan commented Oct 5, 2018

cc @millenomi

@millenomi
Copy link
Contributor

It’s nice when cose written prior to bridging now behaves correctly in the face of bridging.

@spevans
Copy link
Collaborator

spevans commented Jan 16, 2020

#2613

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants