diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-10-13 16:16:04 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-14 01:16:04 +0200 |
commit | eb946f37a7c56fb64703357a67ed098ac8dfd936 (patch) | |
tree | 87c87454fad5a77a13b8db7d05a37222bdb030ec /tests/errmsgs/undeclared_routime5.nim | |
parent | 8232bd04f9edc4b3accb114c9bd6e60190b68396 (diff) | |
download | Nim-eb946f37a7c56fb64703357a67ed098ac8dfd936.tar.gz |
fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to call undeclared routine' error (#8786)
Diffstat (limited to 'tests/errmsgs/undeclared_routime5.nim')
-rw-r--r-- | tests/errmsgs/undeclared_routime5.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/undeclared_routime5.nim b/tests/errmsgs/undeclared_routime5.nim new file mode 100644 index 000000000..4394134ab --- /dev/null +++ b/tests/errmsgs/undeclared_routime5.nim @@ -0,0 +1,9 @@ +discard """ +cmd: '''nim c --hints:off $file''' +errormsg: "undeclared identifier: 'myfun'" +nimout: '''undeclared_routime5.nim(9, 9) Error: undeclared identifier: 'myfun' +''' +""" + + +let a = myfun(1) |