diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-10-27 15:19:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 14:19:28 +0100 |
commit | 0fb878324eeb39a4707be5ab0fd6ad8412950b78 (patch) | |
tree | bb732784f9a31c29fa9c48c29c5be8b11045c4bd /tests/errmsgs | |
parent | 218acfe3671a5a4b7a4c203b6010fdacbe32051c (diff) | |
download | Nim-0fb878324eeb39a4707be5ab0fd6ad8412950b78.tar.gz |
honor --declaredLocs in more places, including type mismatch errors; also show `kind` with --declaredLocs (#15673)
* honor --declaredLocs in more places, including type mismatch errors * fix tests * show declaration location also when type mismatch names clash
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/t8794.nim | 2 | ||||
-rw-r--r-- | tests/errmsgs/undeclared_routime.nim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/errmsgs/t8794.nim b/tests/errmsgs/t8794.nim index 22e4014f1..9db54a9c7 100644 --- a/tests/errmsgs/t8794.nim +++ b/tests/errmsgs/t8794.nim @@ -2,7 +2,7 @@ discard """ cmd: "nim check $options $file" errormsg: "" nimout: ''' -t8794.nim(39, 27) Error: undeclared field: 'a3' for type m8794.Foo3 [declared in m8794.nim(1, 6)] +t8794.nim(39, 27) Error: undeclared field: 'a3' for type m8794.Foo3 [type declared in m8794.nim(1, 6)] ''' """ diff --git a/tests/errmsgs/undeclared_routime.nim b/tests/errmsgs/undeclared_routime.nim index 426507652..7ef12cc0e 100644 --- a/tests/errmsgs/undeclared_routime.nim +++ b/tests/errmsgs/undeclared_routime.nim @@ -2,8 +2,8 @@ discard """ cmd: '''nim c --hints:off $file''' errormsg: "attempting to call routine: 'myiter'" nimout: '''undeclared_routime.nim(13, 15) Error: attempting to call routine: 'myiter' - found 'undeclared_routime.myiter(a: string)[declared in undeclared_routime.nim(10, 9)]' of kind 'iterator' - found 'undeclared_routime.myiter()[declared in undeclared_routime.nim(11, 9)]' of kind 'iterator' + found 'undeclared_routime.myiter(a: string)[iterator declared in undeclared_routime.nim(10, 9)]' + found 'undeclared_routime.myiter()[iterator declared in undeclared_routime.nim(11, 9)]' ''' """ |