GNOME Bugzilla – Bug 604726
default method parameters reference "self" incorrectly
Last modified: 2009-12-19 12:42:05 UTC
In the code below, the foo() call is compiled as this: foo_foo (_tmp0_ = foo_new (), self->priv->n); but "self" should actually mean _tmp0_ here. Compilation of the code below results in: ... /home/ilya/my/prog/vala/try-array.vala.c:227: error: ‘self’ undeclared (first use in this function) ... -------------------------- class Foo { int n = 42; public void foo(int i = n) { } } void main() { new Foo().foo(); }
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 bug 531428 ***