Mercurial > projects > dil
diff trunk/src/dil/Module.d @ 516:433d51c18524
Renamed template Cast to TryCast.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 14 Dec 2007 22:43:44 +0100 |
parents | 7cb97346bc6f |
children | f203c5248d0b |
line wrap: on
line diff
--- a/trunk/src/dil/Module.d Fri Dec 14 20:12:13 2007 +0100 +++ b/trunk/src/dil/Module.d Fri Dec 14 22:43:44 2007 +0100 @@ -49,7 +49,7 @@ if (root.children.length) { // moduleDecl will be null if first node can't be cast to ModuleDeclaration. - this.moduleDecl = Cast!(ModuleDeclaration)(root.children[0]); + this.moduleDecl = TryCast!(ModuleDeclaration)(root.children[0]); if (moduleDecl) { this.setFQN(moduleDecl.getFQN());