We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: 5c53b69249fa5d38ca9db24d2a2ed252
Issue Description:
Please copy/paste this code into queue.swift file and compile:
import Foundation
let queue = DispatchQueue(label: "org.swift.queue") let opqueue = OperationQueue() opqueue.underlyingQueue = queue opqueue.name = "foo"
precondition(opqueue.underlyingQueue === queue, "Should be same!")
print("PASS")
The precondition fails on Ubuntu 16.04 with Swift 4.2-CONVERGENCE build. Passes on Darwin with the same swift toolchain.
The issue seems to be here:
https://github.com/apple/swift-corelibs-foundation/blob/swift-4.2-branch/Foundation/Operation.swift
Around line 529.
This was introduced in this commit:
bc3abbf
The text was updated successfully, but these errors were encountered:
This isnt a 4.2 regression, NSOQ's implementation could use some sprucing up particularly in the regards to things like this.
Sorry, something went wrong.
This is fixed in 5.1
$ sr-8542.swift import Foundation let queue = DispatchQueue(label: "org.swift.queue") let opqueue = OperationQueue() opqueue.underlyingQueue = queue opqueue.name = "foo" precondition(opqueue.underlyingQueue === queue, "Should be same!") print("PASS") $ ~/swift-5.1.5-RELEASE-ubuntu18.04/usr/bin/swift sr-8542.swift PASS
phausler
No branches or pull requests
Additional Detail from JIRA
md5: 5c53b69249fa5d38ca9db24d2a2ed252
Issue Description:
Please copy/paste this code into queue.swift file and compile:
import Foundation
let queue = DispatchQueue(label: "org.swift.queue")
let opqueue = OperationQueue()
opqueue.underlyingQueue = queue
opqueue.name = "foo"
precondition(opqueue.underlyingQueue === queue, "Should be same!")
print("PASS")
The precondition fails on Ubuntu 16.04 with Swift 4.2-CONVERGENCE build. Passes on Darwin with the same swift toolchain.
The issue seems to be here:
https://github.com/apple/swift-corelibs-foundation/blob/swift-4.2-branch/Foundation/Operation.swift
Around line 529.
This was introduced in this commit:
bc3abbf
The text was updated successfully, but these errors were encountered: