diff --git a/dmd/expression.c b/dmd/expression.c index fdb75977..edfd5d90 100644 --- a/dmd/expression.c +++ b/dmd/expression.c @@ -2142,7 +2142,7 @@ Lagain: { //printf("Identifier '%s' is a variable, type '%s'\n", toChars(), v->type->toChars()); if (!type) - { if (!v->type && v->scope) + { if ((!v->type || !v->type->deco) && v->scope) v->semantic(v->scope); type = v->type; if (!v->type)