Mercurial > projects > dil
changeset 204:082f30904456
- Allowing 'typeof' in BaseClassList.
author | aziz |
---|---|
date | Mon, 16 Jul 2007 10:51:01 +0000 |
parents | 4f949a3a394b |
children | e5a4f88982d1 |
files | trunk/src/Parser.d |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;