Mercurial > projects > dil
diff trunk/src/dil/parser/Parser.d @ 616:506ce60760d8
Fixed some error messages.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 09 Jan 2008 17:41:22 +0100 |
parents | fac9e8b258fc |
children | 07946b379006 |
line wrap: on
line diff
--- a/trunk/src/dil/parser/Parser.d Tue Jan 08 22:15:59 2008 +0100 +++ b/trunk/src/dil/parser/Parser.d Wed Jan 09 17:41:22 2008 +0100 @@ -379,7 +379,7 @@ token.type != T.RBrace && token.type != T.EOF) auto text = Token.textSpan(begin, this.prevToken); - error(begin, MSG.IllegalDeclaration ~ text); + error(begin, MSG.IllegalDeclaration, text); } decl.setProtection(this.protection); decl.setStorageClass(this.storageClass); @@ -739,7 +739,7 @@ prev_lt = lt; else // TODO: create new msg RedundantLinkageType. - error(begin, MSG.RedundantLinkageType ~ Token.textSpan(begin, this.prevToken)); + error(begin, MSG.RedundantLinkageType, Token.textSpan(begin, this.prevToken)); } Declaration parseStorageAttribute() @@ -1799,7 +1799,7 @@ token.type != T.RBrace && token.type != T.EOF) auto text = Token.textSpan(begin, this.prevToken); - error(begin, MSG.IllegalStatement ~ text); + error(begin, MSG.IllegalStatement, text); } assert(s !is null); set(s, begin); @@ -2489,7 +2489,7 @@ token.type != T.RBrace && token.type != T.EOF) auto text = Token.textSpan(begin, this.prevToken); - error(begin, MSG.IllegalAsmInstructino ~ text); + error(begin, MSG.IllegalAsmInstruction, text); } set(s, begin); return s;