Skip to content

Commit

Permalink
Improve -v2 diagnostic message for typedef
Browse files Browse the repository at this point in the history
alias is not a 1-to-1 replacement for typedef and in many cases
struct based workaround is absolutely necessry.
  • Loading branch information
Mihails Strasuns committed Jul 29, 2014
1 parent 52e8fd5 commit b735585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.c
Expand Up @@ -2185,7 +2185,7 @@ Dsymbols *Parser::parseDeclarations()
case TOKtypedef:
if (global.params.Dversion >= 3 && mod && mod->isRoot())
{
warning(loc, "use alias for D2 rather than typedef");
warning(loc, "typedef is deprecated in D2, use either alias or custom struct wrapper");
}
case TOKalias:
tok = token.value;
Expand Down

0 comments on commit b735585

Please sign in to comment.