diff dmd/declaration.c @ 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 05c235309d6f
children def7a1d494fd
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