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 549646 - Cannot create a property called 'type'
Cannot create a property called 'type'
Status: RESOLVED DUPLICATE of bug 472259
Product: vala
Classification: Core
Component: Code Generator
0.3.x
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-27 22:05 UTC by Matias
Modified: 2008-09-27 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matias 2008-08-27 22:05:13 UTC
Please describe the problem:
If I create a property called 'type':

public int type {set; get;}

valac produce this output:

#In file included from simple.c:2:
#simple.h:40: error: tipos en conflicto para ‘simple_get_type’
#simple.h:38: error: la declaración previa de ‘simple_get_type’ estaba aquí
#simple.c:62: error: tipos en conflicto para ‘simple_get_type’
#simple.c:38: error: la definición previa de ‘simple_get_type’ estaba aquí
#error: cc exited with status 256
#Compilation failed: 1 error(s), 0 warning(s)

The property with the same name produce another function called simple_get_type method.



Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Jürg Billeter 2008-09-27 11:12:46 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 472259 ***