Mercurial > projects > ddmd
diff dmd/ReturnStatement.d @ 79:43073c7c7769
updated to 2.035
also implemented a few missing functions
still crashes in Import.importAll though
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 03:57:51 +0200 |
parents | ef02e2e203c2 |
children | df6d0f967680 |
line wrap: on
line diff
--- a/dmd/ReturnStatement.d Sun Aug 29 14:39:08 2010 +0100 +++ b/dmd/ReturnStatement.d Mon Aug 30 03:57:51 2010 +0200 @@ -336,16 +336,11 @@ * return exp; * with: * exp; return; - * or, if main(): - * exp; return 0; */ Statement s = new ExpStatement(loc, exp); - //s = s.semantic(sc); - loc = Loc(0); - if (fd.isMain()) - exp = new IntegerExp(0); - else - exp = null; + exp = null; + s = s.semantic(sc); + loc = Loc(); return new CompoundStatement(loc, s, this); }