Skip to content

[SR-740] dispatch_semaphore_t is not convertible to AnyObject #753

@drewcrawford

Description

@drewcrawford
Previous ID SR-740
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, Linux
Assignee dgrove-oss (JIRA)
Priority Medium

md5: 12999cfe1773782d3e3be803c7f86303

Issue 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'

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