mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-19 02:09:03 +02:00
Improve error message when using auto declarations with explicit type.
This commit is contained in:
@@ -748,7 +748,7 @@ void VarDeclaration::semantic(Scope *sc)
|
||||
}
|
||||
}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user