summary refs log tree commit diff stats
path: root/tests/compile/tobjcov.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tobjcov.nim')
-rwxr-xr-xtests/compile/tobjcov.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/compile/tobjcov.nim b/tests/compile/tobjcov.nim
index 17bc8d80d..40360020a 100755
--- a/tests/compile/tobjcov.nim
+++ b/tests/compile/tobjcov.nim
@@ -11,7 +11,7 @@ proc bp(x: var TB) = x.b[high(x.b)] = -1
     
 # in Nimrod proc (x: TB) is compatible to proc (x: TA),
 # but this is not type safe:
-var f = cast[proc (x: var TA)](bp)
+var f = cast[proc (x: var TA) {.nimcall.}](bp)
 var a: TA
 f(a) # bp expects a TB, but gets a TA