Mercurial > projects > ddmd
diff dmd/ProtDeclaration.d @ 49:0aa7d1437ada
AttribDeclaration.oneMember
Lexer.decodeUTF
WithStatement.ctor
StructDeclaration.syntaxCopy
CtorDeclaration.syntaxCopy
ConditionalStatement.syntaxCopy
ProtDeclaration.syntaxCopy
ArrayScopeSymbol.this
TemplateDeclaration.toChars
author | korDen |
---|---|
date | Sat, 21 Aug 2010 07:53:20 +0400 |
parents | 10317f0c89a5 |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/ProtDeclaration.d Sat Aug 21 07:39:45 2010 +0400 +++ b/dmd/ProtDeclaration.d Sat Aug 21 07:53:20 2010 +0400 @@ -22,7 +22,11 @@ Dsymbol syntaxCopy(Dsymbol s) { - assert(false); + ProtDeclaration pd; + + assert(!s); + pd = new ProtDeclaration(protection, Dsymbol.arraySyntaxCopy(decl)); + return pd; } void setScope(Scope sc)