nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b42dbc
)
loader: only apply conditional importation on strict submodules
author
Jean Privat
<jean@pryen.org>
Tue, 31 Jan 2017 19:25:48 +0000
(14:25 -0500)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/loader.nit
b/src/loader.nit
index
ac07e71
..
deb895a
100644
(file)
--- a/
src/loader.nit
+++ b/
src/loader.nit
@@
-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