]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Warn when directly accessing member of silent cast-expression 72061ee0286a4ce37ddec976174cc3786b3e4a59
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 23 Sep 2019 13:56:49 +0000 (15:56 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 25 Sep 2019 13:19:25 +0000 (15:19 +0200)
commit72061ee0286a4ce37ddec976174cc3786b3e4a59
treefcf7af71d36e7df8d693186bab22053b0c380650
parent5182ac26ce718c93925789639f3d89f7ece48650
vala: Warn when directly accessing member of silent cast-expression

"foo as TypeSymbol" may result in `null' and accessing it without check is
not recommended. If the invocation context provides information that `null'
is not a possible result then use an unsafe cast "(TypeSymbol) foo".
vala/valamemberaccess.vala