Friendlier error message with solution (#19880)
* Add helpful suggestion, should always apply * mention var param limitation in async docs * Update compiler/lambdalifting.nim whoops thanks Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
This commit is contained in:
parent
ac89eead8a
commit
e2e663a143
2 changed files with 7 additions and 1 deletions
|
|
@ -98,6 +98,10 @@
|
|||
## `await`. The following section shows different ways that you can handle
|
||||
## exceptions in async procs.
|
||||
##
|
||||
## .. caution::
|
||||
## Procedures marked {.async.} do not support mutable parameters such
|
||||
## as `var int`. References such as `ref int` should be used instead.
|
||||
##
|
||||
## Handling Exceptions
|
||||
## -------------------
|
||||
##
|
||||
|
|
@ -192,6 +196,7 @@
|
|||
## ================
|
||||
##
|
||||
## * The effect system (`raises: []`) does not work with async procedures.
|
||||
## * Mutable parameters are not supported by async procedures.
|
||||
##
|
||||
##
|
||||
## Multiple async backend support
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue