adopt tests
This commit is contained in:
parent
16353c2ac8
commit
77a0f3768b
3 changed files with 12 additions and 13 deletions
|
|
@ -21,7 +21,7 @@ ttmpl(1)
|
||||||
ttmpl[int](1) #<- crash case #1
|
ttmpl[int](1) #<- crash case #1
|
||||||
|
|
||||||
tproc[int]()
|
tproc[int]()
|
||||||
discard tproc[int]
|
let _ = tproc[int]
|
||||||
ttmpl[int]() #<- crash case #2
|
ttmpl[int]() #<- crash case #2
|
||||||
ttmpl[int] #<- crash case #3
|
ttmpl[int] #<- crash case #3
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@ proc poo(x, y: int) =
|
||||||
|
|
||||||
macro m(x: typed): untyped =
|
macro m(x: typed): untyped =
|
||||||
echo repr x.getImpl
|
echo repr x.getImpl
|
||||||
result = x
|
|
||||||
|
|
||||||
discard m foo
|
m(foo)
|
||||||
discard m poo
|
m(poo)
|
||||||
|
|
||||||
#------------
|
#------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import times as bar3 except convert
|
||||||
import definitions as baz
|
import definitions as baz
|
||||||
|
|
||||||
discard foo.v
|
discard foo.v
|
||||||
discard bar.now
|
discard bar.now()
|
||||||
discard bar2.now
|
discard bar2.now()
|
||||||
discard bar3.now
|
discard bar3.now()
|
||||||
discard baz.v
|
discard baz.v
|
||||||
Loading…
Add table
Add a link
Reference in a new issue