bugGNUstep - Bugs: bug #53267, Parameterized NSMutableArray...


You are not allowed to post comments on this tracker with your current authentication level.

bug #53267: Parameterized NSMutableArray doesn't seem to work correctly

Submitted by:  Vincent Woo <akanet>
Submitted on:  Fri 02 Mar 2018 12:50:32 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Fri 02 Mar 2018 12:50:32 PM UTC, original submission:

A user submitted the following code:

NSMutableArray<NSNumber > arr = [NSMutableArray array];
[arr addObject:@1];
NSLog(@"%ld", arr[0].integerValue);

which seems to cause the error

solution.m:9:26: error: property 'integerValue' not found on object of type 'id'
NSLog(@"%ld", arr[0].integerValue);

This appears to work in the reference Apple implementation.

Vincent Woo <akanet>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by akanet (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1