summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authorSaem Ghani <saemghani+github@gmail.com>2021-02-15 00:51:05 -0800
committerGitHub <noreply@github.com>2021-02-15 09:51:05 +0100
commit260a5dacb7a3854d6d6aa18d9996b88bfcd13cc6 (patch)
tree175b30daf8594641e5f47e0576914e73fd386594 /tests/errmsgs
parentb68ecc82cb404dbbd291320139955794e88c24ff (diff)
downloadNim-260a5dacb7a3854d6d6aa18d9996b88bfcd13cc6.tar.gz
fixed dot operator recursive loop & macro suggest (#16922)
* basic stability improvements; refs nimsuggest
* fixed dot operator recursive loop & macro suggest
* hacky fix for run away dot operator sem check

Committing this mostly to make the issue more clear. Perhaps get better
feedback.

* semExprWithType seems like a better place to check
* fixed error messages const case expressions
* Clean-up test
* stopped the dot operator madness

No longer get infinite recursion when seming broken code with a dot
operator macro like in jsffi.

Co-authored-by: Araq <rumpf_a@web.de>
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/t10734.nim15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/errmsgs/t10734.nim b/tests/errmsgs/t10734.nim
index 32ee5415e..4e73db7cd 100644
--- a/tests/errmsgs/t10734.nim
+++ b/tests/errmsgs/t10734.nim
@@ -2,13 +2,14 @@ discard """
   cmd: "nim check $file"
   errormsg: ""
   nimout: '''
-t10734.nim(18, 1) Error: invalid indentation
-t10734.nim(18, 6) Error: invalid indentation
-t10734.nim(19, 7) Error: expression expected, but found '[EOF]'
-t10734.nim(17, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
-t10734.nim(18, 6) Error: undeclared identifier: 'p'
-t10734.nim(18, 6) Error: 'p' cannot be assigned to
-t10734.nim(16, 3) Hint: 'T' is declared but not used [XDeclaredButNotUsed]
+t10734.nim(19, 1) Error: invalid indentation
+t10734.nim(19, 6) Error: invalid indentation
+t10734.nim(20, 7) Error: expression expected, but found '[EOF]'
+t10734.nim(18, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
+t10734.nim(19, 6) Error: undeclared identifier: 'p'
+t10734.nim(19, 6) Error: expression 'p' has no type (or is ambiguous)
+t10734.nim(19, 6) Error: 'p' cannot be assigned to
+t10734.nim(17, 3) Hint: 'T' is declared but not used [XDeclaredButNotUsed]
 '''
 """