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-7988] Cannot extend nested types defined in extensions in some cases #50521

Closed
swift-ci opened this issue Jun 13, 2018 · 0 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

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

Attachment: Download

Environment

Xcode 10b1, macOS 10.13.5

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

md5: e561589a13967e22504bde6c7fa8f9e3

duplicates:

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

Issue Description:

If a type is:

  • Nested within another type

  • The parent type is an enum

  • Defined within an extension to its parent type

Then, extending the type within the same module, but in a different file, results in an error. (This does not seem to happen if the type is public and it is extended in a different module.)

A near-minimal repro case is attached.

ExtendEnumNestedType.zip

@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.
Projects
None yet
Development

No branches or pull requests

1 participant