mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Merged DMD commit 7be2ad3a6789fc9f6e36538b293845ffa84ec7d7:
more 64
This commit is contained in:
@@ -2945,7 +2945,10 @@ void TemplateValueParameter::semantic(Scope *sc)
|
||||
valType = valType->semantic(loc, sc);
|
||||
if (!(valType->isintegral() || valType->isfloating() || valType->isString()) &&
|
||||
valType->ty != Tident)
|
||||
error(loc, "arithmetic/string type expected for value-parameter, not %s", valType->toChars());
|
||||
{
|
||||
if (valType != Type::terror)
|
||||
error(loc, "arithmetic/string type expected for value-parameter, not %s", valType->toChars());
|
||||
}
|
||||
|
||||
if (specValue)
|
||||
{ Expression *e = specValue;
|
||||
|
||||
Reference in New Issue
Block a user