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 508450 - Valac allows arguments called self in method definitions
Valac allows arguments called self in method definitions
Status: RESOLVED DUPLICATE of bug 469335
Product: vala
Classification: Core
Component: Code Generator
0.1.x
Other All
: Low minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-10 08:08 UTC by Angelo
Modified: 2008-01-18 17:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Angelo 2008-01-10 08:08:38 UTC
Please describe the problem:
Valac allows arguments called self in method definitions.

using GLib;

class Foo : GLib.Object
{
	private void func(string self)
	{
	}
}

$ valac -o test test.vala 
test.c:27: error: conflicting types for ‘self’
test.c:27: error: previous definition of ‘self’ was here
test.c:33: error: conflicting types for ‘self’
test.c:33: error: previous definition of ‘self’ was here
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)


Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Jürg Billeter 2008-01-10 08:11:00 UTC
Confirming.
Comment 2 Jürg Billeter 2008-01-18 17:59:54 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 469335 ***