Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Medium
-
Resolution: Done
-
Component/s: Compiler
-
Labels:None
-
Environment:
Xcode 8.3.3
-
Radar URL:
Description
func autoclosureFoo(_ c: @autoclosure () -> Int) { print(c()) } func autoclosureBar(_ c: @autoclosure () -> Int) { autoclosureFoo(c) // <-- This one here autoclosureFoo(c()) } func baz(_ c: () -> Int) { autoclosureFoo(c) // does not work as expected } autoclosureBar(42)
If this requires a full review on the evolution side, let me know, I'll start a new thread.
Attachments
Issue Links
- is duplicated by
-
SR-9494 Disable @autoclosure forwarding and provide a fix-it to add `()`
-
- Closed
-
- links to