Skip to content

Commit

Permalink
Deprecation: array[length] - (deprecated -> error)
Browse files Browse the repository at this point in the history
This has been deprecated for 23 months (2.041), that should be enough.
  • Loading branch information
yebblies committed Oct 28, 2012
1 parent 4c67f3a commit 93c489e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsymbol.c
Expand Up @@ -1266,7 +1266,7 @@ Dsymbol *ArrayScopeSymbol::search(Loc loc, Identifier *ident, int flags)
Expression *ce;

if (ident == Id::length)
deprecation("using 'length' inside [ ] is deprecated, use '$' instead");
::error(loc, "using 'length' inside [ ] is deprecated, use '$' instead");

L1:

Expand Down

0 comments on commit 93c489e

Please sign in to comment.