[vala] Fix CCode generator to treat errors as reference types



commit 7355031106907b94dbf0349a79998fc84566fc77
Author: Luca Bruno <lethalman88 gmail com>
Date:   Mon Jun 28 09:47:55 2010 +0200

    Fix CCode generator to treat errors as reference types
    
    Fixes bug 622797.

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index cdb90c6..6614107 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]