Deprecate the dot style for import paths (#8474)
This commit is contained in:
parent
52807287a4
commit
5491f1f53b
3 changed files with 15 additions and 11 deletions
|
|
@ -155,6 +155,7 @@ proc getModuleName*(conf: ConfigRef; n: PNode): string =
|
|||
# hacky way to implement 'x / y /../ z':
|
||||
result = renderTree(n, {renderNoComments}).replace(" ")
|
||||
of nkDotExpr:
|
||||
localError(conf, n.info, warnDeprecated, "using '.' instead of '/' in import paths")
|
||||
result = renderTree(n, {renderNoComments}).replace(".", "/")
|
||||
of nkImportAs:
|
||||
result = getModuleName(conf, n.sons[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue