fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 (#9262)

(cherry picked from commit 63c00d7be9)
This commit is contained in:
Timothee Cour
2018-10-09 12:51:51 -07:00
committed by narimiran
parent d1114d0995
commit b0618ffe17

View File

@@ -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