This commit is contained in:
parent
47828efe32
commit
63c00d7be9
1 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ true
|
||||||
|
|
||||||
when true:
|
when true:
|
||||||
# Error: undeclared identifier: '|'
|
# Error: undeclared identifier: '|'
|
||||||
proc bar[T](t:T): bool =
|
proc bar*[T](t:T): bool =
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
type Foo = int | float
|
type Foo = int | float
|
||||||
true
|
true
|
||||||
|
|
@ -16,7 +16,7 @@ when true:
|
||||||
|
|
||||||
when true:
|
when true:
|
||||||
# ok
|
# ok
|
||||||
proc bar(t:int): bool =
|
proc bar*(t:int): bool =
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
type Foo = int | float
|
type Foo = int | float
|
||||||
true
|
true
|
||||||
|
|
@ -24,7 +24,7 @@ when true:
|
||||||
|
|
||||||
when true:
|
when true:
|
||||||
# Error: undeclared identifier: '|'
|
# Error: undeclared identifier: '|'
|
||||||
proc bar(t:typedesc): bool =
|
proc bar*(t:typedesc): bool =
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
type Foo = int | float
|
type Foo = int | float
|
||||||
true
|
true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue