Omit class name when #selector() references a method in the same class

Description

+Customer's report (Nicolas Kick <nicolas.kick@gmail.com>):

In http://swiftify.me/ecgs3x, it is superfluous to add the class name to a "#selector(class.method)" if it is inside the class itself.

Environment

None

Activity

Show:
Alex Petuschak
June 19, 2019, 2:01 PM

Related (from ):

NString(original NSDictionary keys type).compare have to be here.

->

Alex Petuschak
June 25, 2019, 9:38 AM

Implemented (in the code):

 

 

However, a compare(_:)method exists for a very little amount of types (NSString, NSNumber, NSDate and few rarely used), so the i.e. AnyHashable.compare(_:) will be produced for an untyped dictionary (I see no more viable output here):

 

 

Alex Petuschak
June 25, 2019, 12:16 PM
Edited

Since I have added similar workaround to a few other methods (mentioned below) you are also encouraged to check those while working on metadata mappings:

 

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

Components

Fix versions

Priority

High
Configure