loader: single module group `is_interesting` if the module is not the default one
authorJean Privat <jean@pryen.org>
Tue, 18 Aug 2015 12:31:50 +0000 (08:31 -0400)
committerJean Privat <jean@pryen.org>
Tue, 18 Aug 2015 18:15:14 +0000 (14:15 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index 4970492..90404ba 100644 (file)
@@ -969,7 +969,11 @@ redef class MGroup
        # * it has a documentation
        fun is_interesting: Bool
        do
-               return module_paths.length > 1 or mmodules.length > 1 or not in_nesting.direct_smallers.is_empty or mdoc != null
+               return module_paths.length > 1 or
+                       mmodules.length > 1 or
+                       not in_nesting.direct_smallers.is_empty or
+                       mdoc != null or
+                       (mmodules.length == 1 and default_mmodule == null)
        end
 
        # Are files and directories in self scanned?