diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-13 15:21:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-23 11:58:28 +0100 |
commit | 031bfdec6f7798b99cc7bf9473a08048228c3d2a (patch) | |
tree | bd9b3ee9fbbaca154f37649f7f3cabe59cfdc349 /tests/objects/tobjcov.nim | |
parent | 610283b9b0d48b1714bef2969b402b77410ce4dd (diff) | |
download | Nim-031bfdec6f7798b99cc7bf9473a08048228c3d2a.tar.gz |
make run the default action of a test in tester
Diffstat (limited to 'tests/objects/tobjcov.nim')
-rw-r--r-- | tests/objects/tobjcov.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/objects/tobjcov.nim b/tests/objects/tobjcov.nim index c766adde0..817c1fcda 100644 --- a/tests/objects/tobjcov.nim +++ b/tests/objects/tobjcov.nim @@ -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 - |