make run the default action of a test in tester
This commit is contained in:
parent
610283b9b0
commit
031bfdec6f
50 changed files with 313 additions and 46 deletions
|
|
@ -1,3 +1,7 @@
|
|||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
# Covariance is not type safe:
|
||||
|
||||
type
|
||||
|
|
@ -14,4 +18,3 @@ proc bp(x: var TB) = x.b[high(x.b)] = -1
|
|||
var f = cast[proc (x: var TA) {.nimcall.}](bp)
|
||||
var a: TA
|
||||
f(a) # bp expects a TB, but gets a TA
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue