Skip to content

Instantly share code, notes, and snippets.

View saqibns's full-sized avatar

Saqib Nizam Shamsi saqibns

View GitHub Profile

Keybase proof

I hereby claim:

  • I am saqibns on github.
  • I am saqibns (https://keybase.io/saqibns) on keybase.
  • I have a public key whose fingerprint is 31D9 B864 7B88 1A87 E21A 4493 8958 A737 FB5C 4FF0

To claim this, I am signing this object:

@saqibns
saqibns / Polymorphism.m
Created December 19, 2016 07:26
Code causing segmentation fault in OCLint
#import <Foundation/Foundation.h>
 
@interface RCPoint : NSObject {
int x, y;
}
-(instancetype)initWithX:(int)x0;
-(instancetype)initWithX:(int)x0 andY:(int)y0;
-(instancetype)initWithPoint:(RCPoint *)p;
@property (nonatomic) int x;
@property (nonatomic) int y;