After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 614010 - Public Array members not working
Public Array members not working
Status: RESOLVED DUPLICATE of bug 570821
Product: vala
Classification: Core
Component: Arrays
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-26 13:25 UTC by Julian Andres Klode
Modified: 2010-03-26 14:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Julian Andres Klode 2010-03-26 13:25:33 UTC
Compiling:
  public class Package : Object {
      public IndexFile[] indexfiles;

      public void merge(Package other) {
          if (!(other.indexfiles[0] in this.indexfiles))
              this.indexfiles += other.indexfiles[0];
      }
  }

  public class IndexFile : Object { }
  public static void main() { }

Results in:
  mycache.c: In function ‘package_merge’:
  mycache.c:107: error: ‘Package’ has no member named ‘_indexfiles_size_’
  error: cc exited with status 256
  Compilation failed: 1 error(s), 0 warning(s)

If I change the member to 'internal', everything works.
Comment 1 Jürg Billeter 2010-03-26 14:00:27 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 570821 ***