@@ -94,10 +94,12 @@ - (OFString*)OF_JSONRepresentationWithOptions: (int)options depth: (size_t)depth; @end @implementation OFNumber +@synthesize type = _type; + + (instancetype)numberWithBool: (bool)bool_ { return [[[self alloc] initWithBool: bool_] autorelease]; } @@ -584,15 +586,10 @@ } return self; } -- (of_number_type_t)type -{ - return _type; -} - - (bool)boolValue { RETURN_AS(bool) }