]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix CCode generator to treat errors as reference types
authorLuca Bruno <lethalman88@gmail.com>
Mon, 28 Jun 2010 07:47:55 +0000 (09:47 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 28 Jun 2010 21:46:34 +0000 (23:46 +0200)
Fixes bug 622797.

codegen/valaccodebasemodule.vala

index cdb90c6a492f2ba061fac38448fe6d3e757b5c6f..66141079e472a0212d234ea77496e57a98e80874 100644 (file)
@@ -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;