[vala] Revert "valainterface: Don't allow 'type' properties"



commit e627ee4180435f23fa1d9c8a6b498df77fb39def
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Sep 17 22:50:15 2016 +0200

    Revert "valainterface: Don't allow 'type' properties"
    
    Breaks build of udisks2.vapi
    
    This reverts commit 8e4cdfd6488c467a3028831e8d6183286c4f399d.

 vala/valainterface.vala |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/vala/valainterface.vala b/vala/valainterface.vala
index f80427b..621c6e8 100644
--- a/vala/valainterface.vala
+++ b/vala/valainterface.vala
@@ -204,11 +204,6 @@ public class Vala.Interface : ObjectTypeSymbol {
                        return;
                }
 
-               if (prop.name == "type") {
-                       Report.error (prop.source_reference, "Property 'type' not allowed");
-                       return;
-               }
-
                properties.add (prop);
                scope.add (prop.name, prop);
 


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