Fix the assert condition on getRootEnv

This commit is contained in:
Sameer Rahmani 2021-11-17 17:50:09 +00:00
parent b3d1151a8b
commit b1ce34db75
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ SemanticEnv &Namespace::createEnv(SemanticEnv *parent) {
};
SemanticEnv &Namespace::getRootEnv() {
assert(environments.empty() && "Root env is not created!");
assert(!environments.empty() && "Root env is not created!");
return *environments.front();
};