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-5868] Second-level declarations in extensions are not seen in dependent file #48438

Closed
swift-ci opened this issue Sep 11, 2017 · 0 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-5868
Radar None
Original Reporter S2dent (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Apple Swift version 4.0 (swiftlang-900.0.52 clang-900.0.29)
Target: x86_64-apple-macosx10.9

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

md5: b86ad6b3e466f854ada6207b98bacbaa

duplicates:

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

Issue Description:

This is a smallest-set example I could come with:

// B.swift
struct C { }

extension C {
    struct B { }
}
// A.swift
extension C.B { }

After running:

swift -frontend -c A.swift B.swift

I can see the error:

A.swift:1:13: error: 'B' is not a member type of 'C'

Running

swift -frontend -c B.swift A.swift

works.

@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

1 participant