GNOME Bugzilla – Bug 508450
Valac allows arguments called self in method definitions
Last modified: 2008-01-18 17:59:54 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:
Confirming.
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 ***