diff trunk/src/dil/Parser.d @ 405:e2529923a0cb

Added two error messages.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 23 Sep 2007 20:32:12 +0200
parents fe46b5ea7a18
children e242f0ee2d27
line wrap: on
line diff
--- a/trunk/src/dil/Parser.d	Sun Sep 23 18:42:36 2007 +0200
+++ b/trunk/src/dil/Parser.d	Sun Sep 23 20:32:12 2007 +0200
@@ -860,8 +860,6 @@
       moduleFQNs ~= moduleFQN;
       moduleAliases ~= moduleAlias;
 
-      if (token.type == T.Colon)
-        break;
       if (token.type != T.Comma)
         break;
       nT();
@@ -980,8 +978,8 @@
 
     if (token.type == T.Semicolon)
     {
-      //if (bases.length != 0)
-        // TODO: Error: bases classes are not allowed in forward declarations.
+      if (bases.length != 0)
+        error(MID.BaseClassInForwardDeclaration);
       nT();
     }
     else if (token.type == T.LBrace)
@@ -1017,7 +1015,7 @@
       case T.Package:   prot = Protection.Package;   break;
       case T.Public:  /*prot = Protection.Public;*/  break;
       default:
-        // TODO: issue error msg
+        error(MID.ExpectedBaseClasses, token.srcText);
         return bases;
       }
       nT(); // Skip protection attribute.
@@ -1056,8 +1054,8 @@
 
     if (token.type == T.Semicolon)
     {
-      //if (bases.length != 0)
-        // TODO: error: base classes are not allowed in forward declarations.
+      if (bases.length != 0)
+        error(MID.BaseClassInForwardDeclaration);
       nT();
     }
     else if (token.type == T.LBrace)