Add the class to its enclosing scope.

This commit is contained in:
Roberto Raggi
2010-08-13 10:31:52 +02:00
parent abadf32070
commit 51645710b0

View File

@@ -2186,6 +2186,8 @@ bool Bind::visit(ClassSpecifierAST *ast)
}
Class *klass = control()->newClass(sourceLocation, className);
_scope->addMember(klass);
_type.setType(klass);
Scope *previousScope = switchScope(klass);