You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
milsemanmannequin opened this issue
Sep 20, 2016
· 1 comment
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselffeatureA feature request or implementation
But, this is very troublesome, as how does one go about calling it? We need a consistent ruling here as well as enforcement. The trouble actually cuts both ways:
func callIt() {
foo(f: { return 1 }) // <-- error: ambiguous use of 'autoclosure(f:)'
let foo = autoclosure as (() -> (Int)) -> () // <-- no error, but which one is it?
}
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselffeatureA feature request or implementation
Additional Detail from JIRA
md5: a89ca81974b881b21425d28c9cc713b6
Issue Description:
We currently allow the following declarations:
But, this is very troublesome, as how does one go about calling it? We need a consistent ruling here as well as enforcement. The trouble actually cuts both ways:
The text was updated successfully, but these errors were encountered: