[SR-12365] error: '(Bool, Bool) -> Bool' is not convertible to '(Bool, @autoclosure () throws -> Bool) -> Bool' when parsing a simple boolean expression #54799
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Attachment: Download
Additional Detail from JIRA
md5: 77f2eb6938432913009131a17185755f
Issue Description:
When compiling the attached code snippet with 5.1.4 I'm getting this error:
/Users/aulanov/src/NotEqual/Sources/NotEqual/NotEqual.swift:25:19: error: '(Bool, Bool) -> Bool' is not convertible to '(Bool, @autoclosure () throws -> Bool) -> Bool'
return a ![](= 0 && b )= 0
In 5.2-DEVELOPMENT-SNAPSHOT-2020-03-12-a the error is different:
/Users/aulanov/src/NotEqual/Sources/NotEqual/NotEqual.swift:15:14: error: binary operator '!=' cannot be applied to operands of type 'Double' and 'Int'
return a ![](= 0 && b )= 0
The issue goes away when I replace a![](=0 with a)=0.0
The text was updated successfully, but these errors were encountered: