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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

dsdsdsds
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/


_______________________________________________
Bug-gnustep mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-gnustep
Reply | Threaded
Open this post in threaded view
|

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

dsdsdsds
Update of bug #53267 (project gnustep):

                Category:                    None => Libraries              
              Item Group:                    None => Bug                    
                  Status:                    None => Invalid                
             Assigned to:                    None => FredKiefer            

    _______________________________________________________

Follow-up Comment #1:

Sorry to take so long to reply to this. I was sure I already declined this but
I seem to have forgotten to do so.

The issue you are seeing is with the compiler that the user is compiling the
source code with. This is neither related to GNUstep nor to libobjc2. You
should forward this error message either to clang or gcc, which ever compiler
the user is running.

As far as I am aware gcc does not support generics for Objective-C, so most
likely this is about clang.

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Bug-gnustep mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-gnustep
Reply | Threaded
Open this post in threaded view
|

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

dsdsdsds
Update of bug #53267 (project gnustep):

             Open/Closed:                    Open => Declined              


    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Bug-gnustep mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-gnustep