Warn for undefined types (not finished yet).

This commit is contained in:
Roberto Raggi
2009-06-04 11:32:01 +02:00
parent 57cd26548e
commit f55d5500c5
3 changed files with 135 additions and 5 deletions

View File

@@ -73,6 +73,10 @@ Name *CheckName::check(NameAST *name, Scope *scope)
Name *previousName = switchName(0);
Scope *previousScope = switchScope(scope);
accept(name);
if (_name && name)
name->name = _name;
(void) switchScope(previousScope);
return switchName(previousName);
}