Skip to content

[SR-739] dispatch_queue_t is not upcastable to dispatch_object_t #754

@drewcrawford

Description

@drewcrawford
Previous ID SR-739
Radar None
Original Reporter @drewcrawford
Type Bug
Status Resolved
Resolution Won't Do
Environment

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

Additional Detail from JIRA
Votes 0
Component/s libdispatch
Labels Bug
Assignee dgrove-oss (JIRA)
Priority Medium

md5: 7a05c4859f5cb697454da6ee8894f864

Issue 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions