From cee07c613f0bdd4a0082fd10f75b91adbed51b24 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 5 May 2021 09:52:02 -0700 Subject: [PATCH] fix typo [skip ci] --- compiler/importer.nim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)