More work on constructors. Basic testcases with "constructor" declarations appear to be working, although there's probably more work to be done. (Both old-style and new-style constructors work for the moment.)

Swift SVN r2163
This commit is contained in:
Eli Friedman
2012-06-07 01:57:57 +00:00
parent 30f5e36dbc
commit e5b4b924a1
14 changed files with 164 additions and 41 deletions

View File

@@ -392,6 +392,9 @@ void Module::lookupValueConstructors(Type BaseType,
return;
}
DoGlobalExtensionLookup(BaseType, Name, BaseMembers, this, cast<Module>(DC),
Result);
Name = Ctx.getIdentifier("constructor");
DoGlobalExtensionLookup(BaseType, Name, BaseMembers, this, cast<Module>(DC),
Result);
}