changeset 1538:e4ff2e15cf5f

Improve error message when using auto declarations with explicit type.
author Christian Kamm <kamm incasoftware de>
date Tue, 14 Jul 2009 18:24:40 +0200
parents ee6b20e7aedb
children 6364e09628fd
files dmd/declaration.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/declaration.c	Mon Jul 13 22:56:59 2009 +0200
+++ b/dmd/declaration.c	Tue Jul 14 18:24:40 2009 +0200
@@ -748,7 +748,7 @@
 	}
     }
     if ((storage_class & STCauto) && !inferred)
-	error("storage class has no effect: auto");
+	error("both auto and explicit type given");
 
     if (tb->ty == Ttuple)
     {   /* Instead, declare variables for each of the tuple elements