Issues with optionals and identifiers that begin with underscores

Description

The following keeps optionals correctly:
http://objc.to/vvcvui

.. however if we manually add underscore to identifiers, optionals are gone:
http://objc.to/vvcvui/1

Note that this still work within a method declaration (so, it seems like an issue narrowed down to converting partial code / selection):
http://objc.to/trft4h

Environment

None

Activity

Show:
Alex Petuschak
August 11, 2017, 3:04 PM
Edited

+See also ShouldNotUnwrapNonOptionalPropertyInOptionalGetterChain() unit test.
Add underscores to `_navigationController` to reproduce.

Alex Petuschak
January 30, 2019, 7:37 AM
Edited

I have also seen this issue when reviewing issues in the Sketch project, when a setXXX method is not translated to a property setter.

Update: seems unrelated to this task, and I can’t easily find which of the setXXX methods should be property accessors.

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Low
Configure