Skip to content

Swift v2.2: Awkward conversion of ObjC header to Swift ... #806

@adonoho

Description

@adonoho

From PFObject:

+ (instancetype)objectWithoutDataWithClassName:(NSString *)className objectId:(nullable NSString *)objectId;

Automatically converts to:
Swift v2.1:

public convenience init(withoutDataWithClassName className: String, objectId: String?)

Swift v2.2:

public convenience init(outDataWithClassName className: String, objectId: String?)

From PFSubclassing:

+ (instancetype)objectWithoutDataWithObjectId:(nullable NSString *)objectId;

Automatically converts to in both versions but is different than what the PFObject conversion with similar naming:

optional public static func objectWithoutDataWithObjectId(objectId: String?) -> Self

The different conversions are probably not what was intended.

Anon,
Andrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions