Uploaded image for project: 'Swift'
  1. Swift
  2. SR-5304

Same name for class and namespace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Environment:

      Xcode 8.3.3
      Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)

      Description

      I have type Magazine declared in two frameworks.
      So I get 'Magazine' is ambiguous for type lookup in this context error.
      When I add the correct prefix Book.Magazine, I get 'Magazine' is not a member type of 'Book', because there is a type Book as well.

      It's not possible to specify the correct namespace, because the compiler is looking for nested class with the same name instead.

      Similar issue: https://forums.developer.apple.com/thread/47421

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marian.cerny Marián Černý
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: