summary refs log tree commit diff stats
path: root/tests/effects/thooks.nim
blob: 23cc005cd155f9663f32c8d209496a5ee65da74b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  matrix: "--warningAsError:Effect"
"""

import std/isolation

# bug #23129
type
  Thing = object
    x: string

proc send(x: string) =
  let wrapper = Thing(x: x)
  discard isolate(wrapper)

send("la")