Swift Beta 3 error
Swift Beta 3 error
- Subject: Swift Beta 3 error
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 08 Jul 2014 13:54:05 +0700
This code used to work fine in Beta 2, but Beta 3 finds an error:
var nbrOfThreads: UInt = ...
let theCounts = [UInt](count: Int(nbrOfThreads), repeatedValue: 0)
dispatch_apply( nbrOfThreads, queue,
{ [unowned self] (idx: size_t) in
var localCount : UInt = 0
...
theCounts[ Int(idx) ] = localCount // Error: Could not find an overload for 'init' that accepts the supplied arguments
}
)
What am I doing wrong again?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden