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 707680 - valac does not print error-message when getters/setters collide with methods
valac does not print error-message when getters/setters collide with methods
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Objects
unspecified
Other All
: Normal minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-07 12:34 UTC by Richard Wiedenhöft
Modified: 2018-05-22 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase (283 bytes, text/x-vala)
2013-09-07 12:34 UTC, Richard Wiedenhöft
  Details
check for name collisions with property accessors (3.61 KB, patch)
2015-08-13 16:34 UTC, dylanmcdermott9
none Details | Review

Description Richard Wiedenhöft 2013-09-07 12:34:30 UTC
Created attachment 254343 [details]
Testcase

Although this is obviously an error which results from mistakes
made by the programmer, valac should print something like "error: The root namespace already contains a definition for `get_foo'".
Comment 1 dylanmcdermott9 2015-08-13 16:34:31 UTC
Created attachment 309219 [details] [review]
check for name collisions with property accessors

In the C code generated by valac, a property accessor may have the same
name as another function. Make it check for this and report an error
when it occurs.
Comment 2 GNOME Infrastructure Team 2018-05-22 14:56:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/405.