Commit ec429ac3 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

fix warning when connecting signals

2007-07-27  Juerg Billeter  <j@bitron.ch>

	* vala/valasemanticanalyzer.vala: fix warning when connecting signals

svn path=/trunk/; revision=404
parent 894d1cd4
2007-07-27 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix warning when connecting signals
2007-07-27 Jürg Billeter <j@bitron.ch> 2007-07-27 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix warning when using element access * vala/valasemanticanalyzer.vala: fix warning when using element access
......
...@@ -2567,10 +2567,14 @@ public class Vala.SemanticAnalyzer : CodeVisitor { ...@@ -2567,10 +2567,14 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
return; return;
} }
a.static_type = a.left.static_type.copy (); if (a.left.static_type != null) {
if (a.parent_node is ExpressionStatement) { a.static_type = a.left.static_type.copy ();
// Gee.List.get () transfers ownership but void function Gee.List.set () doesn't if (a.parent_node is ExpressionStatement) {
a.static_type.transfers_ownership = false; // Gee.List.get () transfers ownership but void function Gee.List.set () doesn't
a.static_type.transfers_ownership = false;
}
} else {
a.static_type = null;
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment