Skip to content

[ffigen] [objc] getters/setters at different levels of class hierarchy have different names #2764

@brianquinlan

Description

@brianquinlan

For example:

extension NSURLRequest$Methods on NSURLRequest {
  NSURLRequestCachePolicy get cachePolicy { ...

extension type NSMutableURLRequest._(objc.ObjCObject object$)
    implements objc.ObjCObject, NSURLRequest {
  set cachePolicy$1(NSURLRequestCachePolicy value) {

This means that, for NSMutableURLRequest, you have to write:

request.cachePolicy$1 = ...
print(request.cachePolicy);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions