]> git.ipfire.org Git - thirdparty/vala.git/commit
Allow 'static' lambdas before chainup
authorSimon Werbeck <simon.werbeck@gmail.com>
Wed, 26 Nov 2014 13:08:41 +0000 (14:08 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 19 Feb 2018 16:54:32 +0000 (17:54 +0100)
commitf5a4f20e12b3cecc87ffb3e4e4a42e1cfb192e88
treed68d1b46a95a2630e03660ab9e17aaf831bb110b
parent7b06c4cc003b75b2e847ba12909cbb64e5e1c13b
Allow 'static' lambdas before chainup

If a lambda expression does not use its instance parameter, it is safe
to use before a chainup expression. To make this work, usage of 'this'
has to be tracked and the code generator needs to make use of this
information.

https://bugzilla.gnome.org/show_bug.cgi?id=567269
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/chainup/class-with-lambda.vala [new file with mode: 0644]
vala/valalambdaexpression.vala
vala/valamemberaccess.vala