Extra parentheses resulting in changes to boolean expression logic

Description

+

now converts to the following (note the extra outer parentheses):

Previously it was converting to:

Environment

None

Activity

Show:
Alex Petuschak
January 15, 2018, 4:13 PM
Edited

+Related report:

Possibly a bug? The first parenthesis is wrong placed or the parentheses should be avoided at all...

ObjC:

Swiftify result:

After the fix:

Alex Petuschak
March 12, 2018, 9:48 AM
Edited

+Related report:

Try to convert `if (!value2 || value2) {}` and the result is `if !(value2 || value2) {}` instead of expected `if !value2 || value2 {}`

Alex Petuschak
March 23, 2018, 4:38 PM
Edited

Related report (from Rob Napier, ZendDesk ticket #153):

+Converting the following ObjC, the line:

was converted to

rather than

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

High
Configure