From 89507225423e342c76271e36e11cc5ad6a43d807 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 21 Apr 2017 14:56:47 -0400 Subject: [PATCH] nitc/loader: load_rt_module returns the MModule Signed-off-by: Jean Privat --- src/loader.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loader.nit b/src/loader.nit index 37812f7..31ec8ab 100644 --- a/src/loader.nit +++ b/src/loader.nit @@ -742,7 +742,7 @@ redef class ModelBuilder # Injection of a new module without source. # Used by the interpreter. - fun load_rt_module(parent: nullable MModule, nmodule: AModule, mod_name: String): nullable AModule + fun load_rt_module(parent: nullable MModule, nmodule: AModule, mod_name: String): nullable MModule do # Create the module @@ -763,7 +763,7 @@ redef class ModelBuilder build_module_importation(nmodule) end - return nmodule + return mmodule end # Visit the AST and create the `MModule` object -- 1.7.9.5