mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Swift 3.0 allowed constructing an enum or calling a function-typed property with multiple arguments even when a single argument of tuple type was expected. Emulate that in Swift 3 mode by wrapping in an extra level of parentheses when the situation comes up. Last vestiges of fallout from SE-0110. Hopefully last, anyway. A nice follow-up to this commit might be to /warn/ in Swift 3 mode when this happens. rdar://problem/30171399
658 B
658 B