diff options
author | Nikolay Nikolov <nickysn@gmail.com> | 2023-12-04 08:17:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 07:17:42 +0100 |
commit | 618ccb6b6a60f9a315997f95cbbd81be9e9d7f53 (patch) | |
tree | 46440438f9fc9ef23646e7deaa5437dbe1d67841 /tests | |
parent | b8fa78939398397f557dbae1c905800850829e29 (diff) | |
download | Nim-618ccb6b6a60f9a315997f95cbbd81be9e9d7f53.tar.gz |
Also show the `raises` pragma when converting proc types to string (#23026)
This affects also nimsuggest hints (e.g. on mouse hover), as well as compiler messages.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/effects/teffects1.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/effects/teffects1.nim b/tests/effects/teffects1.nim index 49c904029..1d267b5fa 100644 --- a/tests/effects/teffects1.nim +++ b/tests/effects/teffects1.nim @@ -39,7 +39,7 @@ proc foo(x: int): string {.nimcall, raises: [ValueError].} = var p: MyProcType = foo #[tt.Error ^ -type mismatch: got <proc (x: int): string{.nimcall, noSideEffect, gcsafe.}> but expected 'MyProcType = proc (x: int): string{.closure.}' +type mismatch: got <proc (x: int): string{.nimcall, raises: [ValueError], noSideEffect, gcsafe.}> but expected 'MyProcType = proc (x: int): string{.closure.}' Calling convention mismatch: got '{.nimcall.}', but expected '{.closure.}'. .raise effects differ ]# |