diff options
author | ee7 <45465154+ee7@users.noreply.github.com> | 2020-12-02 20:48:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 20:48:16 +0100 |
commit | 629b22e3d50e9903512ec893174eb797d9ed431b (patch) | |
tree | 1575efac631f889f637d3c2eaadd4a54386b6cc5 /tests/astspec | |
parent | 139075e96565f4b7436e8d2368f85f11852aa668 (diff) | |
download | Nim-629b22e3d50e9903512ec893174eb797d9ed431b.tar.gz |
styleCheck: Fix error for `sugar` and `std/with` (#16176)
With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: #16174
Diffstat (limited to 'tests/astspec')
-rw-r--r-- | tests/astspec/tastspec.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/astspec/tastspec.nim b/tests/astspec/tastspec.nim index e2cfed277..3413d32f3 100644 --- a/tests/astspec/tastspec.nim +++ b/tests/astspec/tastspec.nim @@ -929,7 +929,7 @@ static: (x & y & z) is string ast.peelOff({nnkStmtList, nnkTypeSection}).matchAst: - of nnkTypeDef(_, _, nnkTypeClassTy(nnkArgList, _, _, nnkStmtList)): + of nnkTypeDef(_, _, nnkTypeClassTy(nnkArglist, _, _, nnkStmtList)): # note this isn't nnkConceptTy! echo "ok" |