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-1634] Can't extend a nested type from a different swift file #44243

Closed
DevAndArtist mannequin opened this issue May 27, 2016 · 0 comments
Closed

[SR-1634] Can't extend a nested type from a different swift file #44243

DevAndArtist mannequin opened this issue May 27, 2016 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@DevAndArtist
Copy link
Mannequin

DevAndArtist mannequin commented May 27, 2016

Previous ID SR-1634
Radar None
Original Reporter @DevAndArtist
Type Bug
Status Resolved
Resolution Duplicate
Environment

Xcode 7.3.1
Swift 2.2

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: bc494249aae3b270695dc6dd7c207e8b

duplicates:

  • SR-631 Extensions in different files do not recognize each other

Issue Description:

I just faced a strange `extension` bug with nested types when using multiple files.

// File1.swift
class A {}
// File2.swift
extension A {

    class B {}
}
// File3.swift
extension A.B {} // `B` is not a member type of `A`

// where I can use the type like this without any problems
let b = A.B()
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

0 participants