QmlJS: Fix import cache usage with 'as' imports.

Change-Id: I6c057e494f87df927adc7b83c6caf1ecc729ac65
Reviewed-on: http://codereview.qt.nokia.com/176
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Christian Kamm
2011-05-27 11:00:39 +02:00
parent a7f4e5fab5
commit 96cde1e9de

View File

@@ -194,6 +194,10 @@ void Link::populateImportedTypes(Imports *imports, Document::Ptr doc)
foreach (const ImportInfo &info, doc->bind()->imports()) {
Import import = d->importCache.value(ImportCacheKey(info));
// ensure usage of the right ImportInfo, the cached import
// can have a different 'as' clause...
import.info = info;
if (!import.object) {
switch (info.type()) {
case ImportInfo::FileImport: