bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Vincent Woo
Subject: [bug #53267] Parameterized NSMutableArray doesn't seem to work correctly
Date: Fri, 2 Mar 2018 07:50:33 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?53267>

                 Summary: Parameterized NSMutableArray doesn't seem to work
correctly
                 Project: GNUstep
            Submitted by: akanet
            Submitted on: Fri 02 Mar 2018 12:50:32 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53267>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]