diff options
author | flywind <xzsflywind@gmail.com> | 2021-03-05 21:39:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:39:46 +0100 |
commit | 171b03c3861e1bcd722303a42b7ad11b14635215 (patch) | |
tree | 275667ab5a101ce0fbac53726838045851a4d765 /lib/std | |
parent | 2e8325a19ced18fd7284ec616529453e5915ccb4 (diff) | |
download | Nim-171b03c3861e1bcd722303a42b7ad11b14635215.tar.gz |
fix #17264 [backport:1.4] (#17266)
* fix #17264 * fix vm * fix js and add tests
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/isolation.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/isolation.nim b/lib/std/isolation.nim index 7ca5f0080..7c44f47fb 100644 --- a/lib/std/isolation.nim +++ b/lib/std/isolation.nim @@ -25,7 +25,8 @@ proc `=destroy`*[T](dest: var Isolated[T]) {.inline.} = # delegate to value's destroy operation `=destroy`(dest.value) -func isolate*[T](value: sink T): Isolated[T] {.magic: "Isolate".} +func isolate*[T](value: sink T): Isolated[T] {.magic: "Isolate".} = ## Create an isolated subgraph from the expression `value`. ## Please read https://github.com/nim-lang/RFCs/issues/244 ## for more details. + Isolated[T](value: value) |