Remove bareword fallback for constants

Access to undefined constants will now always result in an Error
exception being thrown.

This required quite a few test changes, because there were many
buggy tests that unintentionally used bareword fallback in combination
with error suppression.
This commit is contained in:
Nikita Popov 2019-01-31 12:25:51 +01:00
parent 3d39479f4d
commit aad39879f2
49 changed files with 375 additions and 470 deletions

View file

@ -424,7 +424,7 @@ failure:
return &c->value;
}
if (!(flags & IS_CONSTANT_UNQUALIFIED)) {
if (!(flags & IS_CONSTANT_UNQUALIFIED_IN_NAMESPACE)) {
return NULL;
}