summary refs log tree commit diff stats
path: root/tests/threads
diff options
context:
space:
mode:
Diffstat (limited to 'tests/threads')
-rw-r--r--tests/threads/threadex.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/threads/threadex.nim b/tests/threads/threadex.nim
index e61ce5c9c..50a1a4d34 100644
--- a/tests/threads/threadex.nim
+++ b/tests/threads/threadex.nim
@@ -34,7 +34,7 @@ proc produce() {.thread.} =
     m.data = line
     chan.send(m)
   close(input)
-  m.k = mEof
+  m = TMsg(k: mEof)
   chan.send(m)
 
 open(chan)