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

@objc & @objcMembers attributes break compilation on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:
    • Environment:

      Windows 10, swift-DEVELOPMENT-SNAPSHOT-2021-03-02-a-windows10

      Description

      Both @objc & @objcMembers attributes break compilation on Windows

      Steps to reproduce: download the attachment, unpack and build.

      Result:

      ObjCAttributeBug.swift:3:2: error: Objective-C interoperability is disabled
      @objc @objcMembers class MyClass: NSObject {
      ~^~~~~

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Eugene Gubin Eugene Gubin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: