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
prefix operator §{}
prefix func §(a: (Int, Int)) -> Int { return a.0 + a.1}
let a = (1, 2)
let b = §a // Error '§' is not a prefix unary operator
let c = (§)a // Error Consecutive statements on a line must be separated by ';'
let d = (§)(a) // OK
let e = §(1, 2) // Error '§' is not a prefix unary operator
let f = (§)(1, 2) // Error: Extra argument in call
let g = (§)((1, 2)) // OK
The text was updated successfully, but these errors were encountered:
Looks like this was fixed recently alongside #19580, see this file. I'll add some more test cases to ensure this doesn't get accidentally broken again and we can then close the issue.
Environment
OS X 10.11.2, Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 69940d1)
Additional Detail from JIRA
md5: 98ff25433ff92b7970173819af657d87
Issue Description:
The text was updated successfully, but these errors were encountered: