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 723258 - Property with name "type"
Property with name "type"
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Errors
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-29 22:44 UTC by Miguel
Modified: 2016-09-17 20:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Compile with valac -c bugxxxxx.vala (599 bytes, text/x-vala)
2014-01-29 22:44 UTC, Miguel
  Details
Make sure the propetry name is not "type" when adding properties to an interface (735 bytes, patch)
2015-10-27 08:49 UTC, Timm Bäder
committed Details | Review

Description Miguel 2014-01-29 22:44:22 UTC
Created attachment 267594 [details]
Compile with valac -c bugxxxxx.vala

Properties with name "type" should be checked in interfaces at Vala compiler stage, like class properties are checked right now.

Also methods with signature get_type raises a problem at C compiler stage, but not at Vala compiler stage. This one can be mitigated by cname means, but not the other one.

Attached file have two examples tested with git master version of vala compiler.

Thank you for your time.
Comment 1 Timm Bäder 2015-10-27 08:49:48 UTC
Created attachment 314197 [details] [review]
Make sure the propetry name is not "type" when adding properties to an interface

Minimal patch. I can include a unit test if wanted.