Skip to content

Commit

Permalink
Fix multifile/singlefile packages
Browse files Browse the repository at this point in the history
  • Loading branch information
abreslav committed Apr 8, 2013
1 parent 5e14630 commit 2015712
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -279,7 +279,7 @@ private static Collection<JetFile> getPackageFragmentSources(
}

public static boolean isMultiFileNamespace(@NotNull ModuleSourcesManager moduleSourcesManager, @NotNull ModuleDescriptor module, @NotNull FqName fqName) {
return !getPackageFragmentSources(moduleSourcesManager, module, fqName).isEmpty();
return getPackageFragmentSources(moduleSourcesManager, module, fqName).size() > 1;
}

public static boolean isObjectLiteral(BindingContext bindingContext, ClassDescriptor declaration) {
Expand Down

0 comments on commit 2015712

Please sign in to comment.