From 93c489ebca5f69f23c3d6525b5582b3453ffd8b9 Mon Sep 17 00:00:00 2001 From: Daniel Murphy Date: Sun, 5 Feb 2012 21:54:55 +1100 Subject: [PATCH] Deprecation: array[length] - (deprecated -> error) This has been deprecated for 23 months (2.041), that should be enough. --- src/dsymbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsymbol.c b/src/dsymbol.c index c51976c14d28..93bae5114204 100644 --- a/src/dsymbol.c +++ b/src/dsymbol.c @@ -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: