summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-28 10:00:31 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-28 10:00:31 +0200
commit84c4e7a50267c7a7d1fa437b27b2e27d9c76f896 (patch)
tree0a0b06ed5b49ad3c1e6ef5aa5fcced54fab1f64f /tests/errmsgs
parente3379770b2f7107a3cf04375af5e677c793972bc (diff)
downloadNim-84c4e7a50267c7a7d1fa437b27b2e27d9c76f896.tar.gz
make tests green again
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/tproper_stacktrace2.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/errmsgs/tproper_stacktrace2.nim b/tests/errmsgs/tproper_stacktrace2.nim
index 5f312b870..44b208c87 100644
--- a/tests/errmsgs/tproper_stacktrace2.nim
+++ b/tests/errmsgs/tproper_stacktrace2.nim
@@ -3,7 +3,7 @@ discard """
   exitcode: 1
 """
 
-proc returnsNil(): string = return nil
+proc returnsNil(): ref int = return nil
 
 iterator fields*(a, b: int): int =
   if a == b:
@@ -17,6 +17,6 @@ proc main(): string =
   result = ""
   for i in fields(0, 1):
     let x = returnsNil()
-    result &= "string literal " & $x
+    result &= "string literal " & $x[]
 
 echo main()