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

fix virtual methods with generic return type

2007-09-02  Juerg Billeter  <j@bitron.ch>

	* gobject/valacodegeneratormethod.vala: fix virtual methods with generic
	  return type

svn path=/trunk/; revision=576
parent f093064c
2007-09-02 Jürg Billeter <j@bitron.ch>
* gobject/valacodegeneratormethod.vala: fix virtual methods with generic
return type
2007-09-02 Jürg Billeter <j@bitron.ch>
* vapi/curses.vala: improve Screen class, patch by Ed Schouten
......
......@@ -382,7 +382,7 @@ public class Vala.CodeGenerator {
vcall.add_argument (new CCodeIdentifier (cparam.name));
}
if (m.return_type.data_type == null) {
if (m.return_type.data_type == null && m.return_type.type_parameter == null) {
vblock.add_statement (new CCodeExpressionStatement (vcall));
} else {
/* pass method return value */
......
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