summary refs log tree commit diff stats
path: root/tests/cpp
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-05-01 11:10:40 +0200
committerGitHub <noreply@github.com>2021-05-01 11:10:40 +0200
commitfb86271556b4ea4485195febaa02b972149ca088 (patch)
tree5ec07b7d619f3d84bbd0aed2aae0569269b65499 /tests/cpp
parenta55c7e9679e8df0ffc7eaff1e2d5626ec5a9129a (diff)
downloadNim-fb86271556b4ea4485195febaa02b972149ca088.tar.gz
system.nim cleanup some exported constants which should never have be… (#17909)
* system.nim cleanup some exported constants which should never have been exported
Diffstat (limited to 'tests/cpp')
-rw-r--r--tests/cpp/tcovariancerules.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cpp/tcovariancerules.nim b/tests/cpp/tcovariancerules.nim
index 49fe8015b..5ac7d8bac 100644
--- a/tests/cpp/tcovariancerules.nim
+++ b/tests/cpp/tcovariancerules.nim
@@ -31,7 +31,7 @@ import macros
 macro skipElse(n: untyped): untyped = n[0]
 
 template acceptWithCovariance(x, otherwise): untyped =
-  when nimEnableCovariance:
+  when defined nimEnableCovariance:
     x
   else:
     reject(x)