Browse Source

Fix `init` bug

Xin Wang 9 years ago
parent
commit
1cda2c6001
1 changed files with 1 additions and 1 deletions
  1. 1 1
      YYModel/YYClassInfo.m

+ 1 - 1
YYModel/YYClassInfo.m

@@ -152,7 +152,7 @@ YYEncodingType YYEncodingGetType(const char *typeEncoding) {
 
 
 - (instancetype)initWithProperty:(objc_property_t)property {
 - (instancetype)initWithProperty:(objc_property_t)property {
     if (!property) return nil;
     if (!property) return nil;
-    self = [self init];
+    self = [super init];
     _property = property;
     _property = property;
     const char *name = property_getName(property);
     const char *name = property_getName(property);
     if (name) {
     if (name) {