summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-10-09 12:51:51 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-10-09 21:51:51 +0200
commit63c00d7be9f016296074e5b78e4a9aeee7771c5c (patch)
tree4e371b05139a1f2395c068a6452ff786ea27eb05
parent47828efe3292222e732bc83e191371b802ddfb18 (diff)
downloadNim-63c00d7be9f016296074e5b78e4a9aeee7771c5c.tar.gz
fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 (#9262)
-rw-r--r--tests/generics/t8694.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/generics/t8694.nim b/tests/generics/t8694.nim
index da6c6dbed..dc5c262ee 100644
--- a/tests/generics/t8694.nim
+++ b/tests/generics/t8694.nim
@@ -8,7 +8,7 @@ true
 
 when true:
   # Error: undeclared identifier: '|'
-  proc bar[T](t:T): bool =
+  proc bar*[T](t:T): bool =
     runnableExamples:
       type Foo = int | float
     true
@@ -16,7 +16,7 @@ when true:
 
 when true:
   # ok
-  proc bar(t:int): bool =
+  proc bar*(t:int): bool =
     runnableExamples:
       type Foo = int | float
     true
@@ -24,7 +24,7 @@ when true:
 
 when true:
   # Error: undeclared identifier: '|'
-  proc bar(t:typedesc): bool =
+  proc bar*(t:typedesc): bool =
     runnableExamples:
       type Foo = int | float
     true