Mercurial > projects > ddmd
diff dmd/ThrowStatement.d @ 130:60bb0fe4563e
dmdfe 2.037 first main iteration
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 09 Sep 2010 22:51:44 +0100 |
parents | e28b18c23469 |
children | af724d3510d7 |
line wrap: on
line diff
--- a/dmd/ThrowStatement.d Sun Sep 05 15:32:22 2010 +0400 +++ b/dmd/ThrowStatement.d Thu Sep 09 22:51:44 2010 +0100 @@ -43,8 +43,11 @@ FuncDeclaration fd = sc.parent.isFuncDeclaration(); fd.hasReturnExp |= 2; +version(DMDV1) { + // See bugzilla 3388. Should this be or not? if (sc.incontract) error("Throw statements cannot be in contracts"); +} exp = exp.semantic(sc); exp = resolveProperties(sc, exp); if (!exp.type.toBasetype().isClassHandle())