Skip to content

Commit

Permalink
Merge pull request #2340 from WalterBright/ErrorStatement
Browse files Browse the repository at this point in the history
add ErrorStatement
  • Loading branch information
Don Clugston committed Jul 14, 2013
2 parents a1636d0 + bbacbba commit dd96c63
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 62 deletions.
4 changes: 3 additions & 1 deletion src/func.c
Expand Up @@ -1328,7 +1328,9 @@ void FuncDeclaration::semantic3(Scope *sc)
}
}

if (isCtorDeclaration() && ad)
if (fbody->isErrorStatement())
;
else if (isCtorDeclaration() && ad)
{
#if DMDV2
// Check for errors related to 'nothrow'.
Expand Down

0 comments on commit dd96c63

Please sign in to comment.