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
}

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to