Merge pull request #105 from AndrejMitrovic/ParseBaseProtection
Emit warning for deprecated base class protection syntax.
This commit is contained in:
commit
1358b5ace9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue