From 89bbb410591e4e99a560d36c75bd5af61b2ef2b6 Mon Sep 17 00:00:00 2001 From: Andrej Mitrovic Date: Tue, 11 Feb 2014 13:02:49 +0100 Subject: [PATCH] Emit warning for deprecated base class protection syntax. --- stdx/d/parser.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stdx/d/parser.d b/stdx/d/parser.d index ea93afc..7152b5d 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -881,6 +881,11 @@ alias core.sys.posix.stdio.fileno fileno; { mixin(traceEnterAndExit!(__FUNCTION__)); auto node = new BaseClass; + if (current.type.isProtection()) + { + warn("Use of base class protection is deprecated."); + advance(); + } if (currentIs(tok!"typeof")) { node.typeofExpression = parseTypeofExpression();