Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Use __typeof instead of typeof #664

Open
3 tasks done
hansemannn opened this issue Apr 3, 2018 · 0 comments
Open
3 tasks done

Use __typeof instead of typeof #664

hansemannn opened this issue Apr 3, 2018 · 0 comments

Comments

@hansemannn
Copy link

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Description

I want to build a bridge for this library to be used in the Appcelerator Titanium SDK. When importing the library, I noticed that Xcode complains about the weak self references, e.g.

_weak typeof(self) weakSelf = self;

It can easily be fixed by using __typeof instead. Or do you see any downsides in doing that? Thanks!

Expected result:

Xcode builds fine.

Actual result:

Xcode doesn't build fine 🤫.

Attachments:

bildschirmfoto 2018-04-03 um 19 20 30

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant