]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Revert "valainterface: Don't allow 'type' properties"
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Sep 2016 20:50:15 +0000 (22:50 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Sep 2016 20:50:15 +0000 (22:50 +0200)
Breaks build of udisks2.vapi

This reverts commit 8e4cdfd6488c467a3028831e8d6183286c4f399d.

vala/valainterface.vala

index f80427b98d9b844f41477a431aabbf191c05819d..621c6e8ce16c050f5193f3ba475d54a7a2b3f1f8 100644 (file)
@@ -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);