Seemingly more appropriate logic in BuiltinScopeExtensionMode.

This commit is contained in:
Pavel V. Talanov
2012-07-20 14:18:26 +04:00
parent 0b4499a4b7
commit 8b5b2ce631
@@ -61,10 +61,10 @@ public class DefaultModuleConfiguration implements ModuleConfiguration {
if (DescriptorUtils.getFQName(namespaceDescriptor).equalsTo(JetStandardClasses.STANDARD_CLASSES_FQNAME)) {
switch (builtinsScopeExtensionMode) {
case ALL:
namespaceMemberScope.importScope(JetStandardClasses.STANDARD_CLASSES);
namespaceMemberScope.importScope(JetStandardLibrary.getInstance().getLibraryScope());
break;
case ONLY_STANDARD_CLASSES:
namespaceMemberScope.importScope(JetStandardLibrary.getInstance().getLibraryScope());
namespaceMemberScope.importScope(JetStandardClasses.STANDARD_CLASSES);
break;
}