Swift cannot invoke map with argument list of type

Originator:keithbsmiley
Number:rdar://23570873 Date Originated:16-Nov-2015 10:24 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 2.1
Classification:Other Bug Reproducible:Always
 
Summary:

Sometimes swift cannot seem to infer the type of a multiline closure
provided to map.

Steps to reproduce:

1. Attempt to compile the provided example with
  `swiftc SwiftMapArgumentList.swift`

Expected results:

The type is inferred and it is compile correctly.

Actual results:

This error is produced:

```
error: cannot invoke 'map' with an argument list of type
'(@noescape (Thing) throws -> _)'
```

Notes:

- See the comments in the attached file for workarounds

Comments

https://github.com/keith/radars/tree/master/SwiftMapArgumentList

By keithbsmiley at Nov. 17, 2015, 6:26 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!