vala r1437 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1437 - in trunk: . vala
- Date: Sun, 25 May 2008 18:51:13 +0000 (UTC)
Author: juergbi
Date: Sun May 25 18:51:13 2008
New Revision: 1437
URL: http://svn.gnome.org/viewvc/vala?rev=1437&view=rev
Log:
2008-05-25 Juerg Billeter <j bitron ch>
* vala/valaarraytype.vala:
* vala/valapointertype.vala:
* vala/valasemanticanalyzer.vala:
Fix type resolving for arrays and pointers when declaring multiple
variables in a single statement
Modified:
trunk/ChangeLog
trunk/vala/valaarraytype.vala
trunk/vala/valapointertype.vala
trunk/vala/valasemanticanalyzer.vala
Modified: trunk/vala/valaarraytype.vala
==============================================================================
--- trunk/vala/valaarraytype.vala (original)
+++ trunk/vala/valaarraytype.vala Sun May 25 18:51:13 2008
@@ -123,7 +123,7 @@
}
public override DataType copy () {
- var result = new ArrayType (element_type, rank, source_reference);
+ var result = new ArrayType (element_type.copy (), rank, source_reference);
result.value_owned = value_owned;
result.nullable = nullable;
result.floating_reference = floating_reference;
Modified: trunk/vala/valapointertype.vala
==============================================================================
--- trunk/vala/valapointertype.vala (original)
+++ trunk/vala/valapointertype.vala Sun May 25 18:51:13 2008
@@ -59,7 +59,7 @@
}
public override DataType copy () {
- return new PointerType (base_type);
+ return new PointerType (base_type.copy ());
}
public override bool compatible (DataType target_type) {
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Sun May 25 18:51:13 2008
@@ -1356,7 +1356,6 @@
var calc_sizes = new ArrayList<Literal> ();
if (initlist != null) {
initlist.expected_type = new ArrayType (expr.element_type, expr.rank, expr.source_reference);
- initlist.expected_type.add_type_argument (expr.element_type);
initlist.accept (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]