diff --git a/compiler/importer.nim b/compiler/importer.nim index 9f13e30fc3e5e..68743a92e37a8 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -285,14 +285,14 @@ proc myImportModule(c: PContext, n: var PNode, importStmtResult: PNode): PSym = c.graph.importStack.setLen(L) # we cannot perform this check reliably because of # test: modules/import_in_config) # xxx is that still true? - let realModuule = result.resolveModuleAlias - if realModuule == c.module: + let realModule = result.resolveModuleAlias + if realModule == c.module: localError(c.config, n.info, "module '$1' cannot import itself" % c.module.name.s) - if sfDeprecated in realModuule.flags: - if realModuule.constraint != nil: - message(c.config, n.info, warnDeprecated, realModuule.constraint.strVal & "; " & realModuule.name.s & " is deprecated") + if sfDeprecated in realModule.flags: + if realModule.constraint != nil: + message(c.config, n.info, warnDeprecated, realModule.constraint.strVal & "; " & realModule.name.s & " is deprecated") else: - message(c.config, n.info, warnDeprecated, realModuule.name.s & " is deprecated") + message(c.config, n.info, warnDeprecated, realModule.name.s & " is deprecated") suggestSym(c.graph, n.info, result, c.graph.usageSym, false) importStmtResult.add newSymNode(result, n.info) #newStrNode(toFullPath(c.config, f), n.info)