diff options
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valainterface.vala | 5 |
1 files changed, 5 insertions, 0 deletions
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); |