# HG changeset patch # User aziz # Date 1184583061 0 # Node ID 082f309044564290ef44d24085b2e545d7b08687 # Parent 4f949a3a394b857cce00c22a71085ac8b4d688ab - Allowing 'typeof' in BaseClassList. diff -r 4f949a3a394b -r 082f30904456 trunk/src/Parser.d --- a/trunk/src/Parser.d Mon Jul 16 10:47:03 2007 +0000 +++ b/trunk/src/Parser.d Mon Jul 16 10:51:01 2007 +0000 @@ -748,8 +748,7 @@ Protection prot = Protection.Public; switch (token.type) { - // TODO: What about class Foo : typeof(new Bar)? - case T.Identifier, T.Dot/+, Typeof+/: goto LparseBasicType; + case T.Identifier, T.Dot, T.Typeof: goto LparseBasicType; case T.Private: prot = Protection.Private; break; case T.Protected: prot = Protection.Protected; break; case T.Package: prot = Protection.Package; break;