[swift-users] forEach error: Parameters may not have the 'var' specifier
CK TUNG
cktung at mac.com
Thu Sep 1 05:21:18 CDT 2016
This error is for Swift 3 Xcode 8 beta 6
array.forEach {( var a : AnyObject) -> () in // error here : Parameters may not have the 'var' specifier
// modify object here
}
for var a in array { // OK
// modify object here
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160901/16496180/attachment.html>
More information about the swift-users
mailing list