From: Luca Bruno Date: Mon, 28 Jun 2010 07:47:55 +0000 (+0200) Subject: Fix CCode generator to treat errors as reference types X-Git-Tag: 0.9.3~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7355031106907b94dbf0349a79998fc84566fc77;p=thirdparty%2Fvala.git Fix CCode generator to treat errors as reference types Fixes bug 622797. --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index cdb90c6a4..66141079e 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -3896,7 +3896,7 @@ public class Vala.CCodeBaseModule : CCodeModule { } bool is_reference_type_argument (DataType type_arg) { - if (type_arg.data_type != null && type_arg.data_type.is_reference_type ()) { + if (type_arg is ErrorType || (type_arg.data_type != null && type_arg.data_type.is_reference_type ())) { return true; } else { return false;