Skip to content

Commit

Permalink
fix typo [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed May 5, 2021
1 parent 6c5caa3 commit cee07c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compiler/importer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cee07c6

Please sign in to comment.