vala r908 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r908 - in trunk: . vala
- Date: Sat, 26 Jan 2008 10:34:25 +0000 (GMT)
Author: juergbi
Date: Sat Jan 26 10:34:24 2008
New Revision: 908
URL: http://svn.gnome.org/viewvc/vala?rev=908&view=rev
Log:
2008-01-26 Juerg Billeter <j bitron ch>
* vala/valasemanticanalyzer.vala: fix crash with invalid invocation
expressions, fixes bug 511823
Modified:
trunk/ChangeLog
trunk/vala/valasemanticanalyzer.vala
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Sat Jan 26 10:34:24 2008
@@ -1506,15 +1506,9 @@
var mtype = expr.call.static_type;
- if (mtype == null) {
- /* if no type found, skip this check */
- expr.error = true;
- return;
- }
-
Collection<FormalParameter> params;
- if (mtype.is_invokable ()) {
+ if (mtype != null && mtype.is_invokable ()) {
params = mtype.get_parameters ();
} else {
expr.error = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]