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

dispatch_queue_t is not upcastable to dispatch_object_t

    XMLWordPrintable

    Details

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

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

      Description

      The following program compiles on Darwin:

      let t: dispatch_queue_t! = nil
      let a: dispatch_object_t! = t
      

      and not on Linux:

      error: cannot convert value of type 'dispatch_queue_t!' to specified type 'dispatch_object_t!'
      let a: dispatch_object_t! = t
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: