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-954] swiftc doesn't find inner type declared in an extension in another file #43566

Closed
mayoff opened this issue Mar 16, 2016 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@mayoff
Copy link

mayoff commented Mar 16, 2016

Previous ID SR-954
Radar None
Original Reporter @mayoff
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

OS X 10.11.3
swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx.pkg

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

md5: 607417df066c8fce4108ec3ab2f19937

duplicates:

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

Issue Description:

Create structs.swift:

public struct Outer { }
internal extension Outer { internal struct Inner { }}

Create main.swift:

extension Outer.Inner { }

Compile them together:

:; /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01a.xctoolchain/usr/bin/swiftc *.swift
main.swift:1:17: error: 'Inner' is not a member type of 'Outer'
extension Outer.Inner { }
~~~~~ ^

@belkadan
Copy link
Contributor

Probably the same as SR-631; can certainly be worked on together.

@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

2 participants