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

dispatch_semaphore_t is not convertible to AnyObject

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Won't Do
    • Component/s: libdispatch
    • Labels:
    • Environment:

      Linux x64
      swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a

      Description

      in Darwin, the following program is legal:

      import Dispatch
      let a: AnyObject = dispatch_semaphore_create(0)
      

      On Linux, it produces the error:

      error: value of type 'dispatch_semaphore_t' (aka 'COpaquePointer') does not conform to specified type 'AnyObject'
      

        Attachments

          Activity

            People

            Assignee:
            dgrove-oss David Grove
            Reporter:
            drewcrawford Drew Crawford
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: