]> git.ipfire.org Git - thirdparty/vala.git/commit
Improve constructor chain-up checks 73b9e4b4a2c059ceb6bce7ab173050fb70739892
authorSimon Werbeck <simon.werbeck@gmail.com>
Wed, 26 Nov 2014 10:53:31 +0000 (11:53 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 7 Dec 2016 09:12:31 +0000 (10:12 +0100)
commit73b9e4b4a2c059ceb6bce7ab173050fb70739892
tree17051cc41398da06721d46dd93c1bc806c64ade0
parent241b058ebc4979f55daf5febce44277d50a6c909
Improve constructor chain-up checks

The only valid expressions for chaining up are:
 * this[.named] ()
 * base[.named] ()
 * Object () - for GObject style chain-ups

This patch should prevent invalid chain-ups such as:
* Foo.named (), where Foo is not a valid base class
* (new Foo ()) (), i.e. invoking expressions that return an object

In preparation to fixing bug 567269, is_chainup() was turned into a
property.
vala/valamethodcall.vala