diff --git a/extobjc/EXTKeyPathCoding.h b/extobjc/EXTKeyPathCoding.h index f34dc4a4..18da62e2 100644 --- a/extobjc/EXTKeyPathCoding.h +++ b/extobjc/EXTKeyPathCoding.h @@ -42,7 +42,7 @@ NSString *lowercaseStringPath = @keypath(NSString.new, lowercaseString); (((void)(NO && ((void)PATH, NO)), strchr(# PATH, '.') + 1)) #define keypath2(OBJ, PATH) \ - (((void)(NO && ((void)OBJ.PATH, NO)), # PATH)) + "" ? @ # PATH : (__typeof__(((__typeof__(OBJ))nil).PATH, @"")) nil /** * \@collectionKeypath allows compile-time verification of key paths across collections NSArray/NSSet etc. Given a real object