Mercurial > projects > dang
diff basic/Messages.d @ 136:2be29b296081
Lots of changes:
- Parsing classes and interfaces
- Fixed some seg faults in sema
- Supporting "private" to some extend
- And a lot of other small fixes
author | johnsen@johnsen-laptop |
---|---|
date | Fri, 11 Jul 2008 21:47:57 +0200 |
parents | 3a0cd42de9cc |
children | 927ae00bd9d2 |
line wrap: on
line diff
--- a/basic/Messages.d Wed Jul 09 13:38:11 2008 +0200 +++ b/basic/Messages.d Fri Jul 11 21:47:57 2008 +0200 @@ -32,6 +32,7 @@ UndefinedIdentifier, UndefinedType, MissingMember, + CannotRedeclare, // Strings InvalidStrPrefix, @@ -48,6 +49,9 @@ FloatingInvalidEnd, FloatingBadLocation, FloatingDotInE, + + // Protection + CannotAccessPrivate, } enum MessageType @@ -96,6 +100,7 @@ UndefinedIdentifier : E(Err, "Undefined identifier '%0'"), UndefinedType : E(Err, "Undefined type '%0'"), MissingMember : E(Err, "%0 %1 has no member %2"), + CannotRedeclare : E(Err, "Cannot redeclare '%0'"), // literals InvalidStrPrefix : E(Err, "Invalid string literal prefix"), @@ -111,7 +116,8 @@ FloatingToLarge : E(Err, "Floating literal is to large"), FloatingInvalidEnd : E(Err, "Floating literal have wrong ending"), FloatingBadLocation : E(Err, "Bad location for '%0' in floting literal"), - FloatingDotInE : E(Err, "There cannot be a dot in the exponent of a floating literal") + FloatingDotInE : E(Err, "There cannot be a dot in the exponent of a floating literal"), + CannotAccessPrivate : E(Err, "Cannot access private member.") ]; }