Open
Description
Previous ID | SR-12583 |
Radar | rdar://problem/62202372 |
Original Reporter | @jckarter |
Type | Bug |
Additional Detail from JIRA
Votes | 1 |
Component/s | Compiler |
Labels | Bug, StarterBug |
Assignee | None |
Priority | Medium |
md5: f3208365889a29361424efaa2b6814cd
Issue Description:
If you have a function that takes a function, then returns a function that takes another function:
func foo(_: ()->()) -> (() -> ()) -> () { fatalError() }
Then you can call it like this:
foo() {} {}
but this doesn't parse:
foo {} {}