loader: only apply conditional importation on strict submodules
authorJean Privat <jean@pryen.org>
Tue, 31 Jan 2017 19:25:48 +0000 (14:25 -0500)
committerJean Privat <jean@pryen.org>
Thu, 2 Feb 2017 18:51:14 +0000 (13:51 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index ac07e71..deb895a 100644 (file)
@@ -1061,7 +1061,7 @@ redef class ModelBuilder
                                for i in [1..ci.length[ do
                                        var m = ci[i]
                                        # Is imported?
-                                       if not mmodule.in_importation.greaters.has(m) then continue label
+                                       if mmodule == m or not mmodule.in_importation.greaters.has(m) then continue label
                                end
                                # Still here? It means that all conditions modules are loaded and imported