Skip to content

Commit

Permalink
fix tests/generics/t8694.nim: runnableExamples were not run because o…
Browse files Browse the repository at this point in the history
…f #9216 (#9262)
  • Loading branch information
timotheecour authored and Araq committed Oct 9, 2018
1 parent 47828ef commit 63c00d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/generics/t8694.nim
Expand Up @@ -8,23 +8,23 @@ true

when true:
# Error: undeclared identifier: '|'
proc bar[T](t:T): bool =
proc bar*[T](t:T): bool =
runnableExamples:
type Foo = int | float
true
echo bar(0)

when true:
# ok
proc bar(t:int): bool =
proc bar*(t:int): bool =
runnableExamples:
type Foo = int | float
true
echo bar(0)

when true:
# Error: undeclared identifier: '|'
proc bar(t:typedesc): bool =
proc bar*(t:typedesc): bool =
runnableExamples:
type Foo = int | float
true
Expand Down

0 comments on commit 63c00d7

Please sign in to comment.