From: Timm Bäder Date: Tue, 27 Oct 2015 08:47:58 +0000 (+0100) Subject: valainterface: Don't allow 'type' properties X-Git-Tag: 0.34.0~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e4cdfd6488c467a3028831e8d6183286c4f399d;p=thirdparty%2Fvala.git valainterface: Don't allow 'type' properties https://bugzilla.gnome.org/show_bug.cgi?id=723258 --- diff --git a/vala/valainterface.vala b/vala/valainterface.vala index 621c6e8ce..f80427b98 100644 --- a/vala/valainterface.vala +++ b/vala/valainterface.vala @@ -204,6 +204,11 @@ 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);