summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-10 01:57:08 +0100
committerAraq <rumpf_a@web.de>2014-12-10 01:57:08 +0100
commit85cc5a6a1f0247f0d70f68831a19ec9cab1f5dd3 (patch)
tree19e8a95d1b974544de36f7f9eabd562b13c424ac /tests
parent74fdd5c2eaa5507b636c70db80df7f9c3f332d2b (diff)
downloadNim-85cc5a6a1f0247f0d70f68831a19ec9cab1f5dd3.tar.gz
destuctors are experimental; 'func' is now a keyword
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/tdestructor.nim2
-rw-r--r--tests/destructor/tdestructor2.nim2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/destructor/tdestructor.nim b/tests/destructor/tdestructor.nim
index f0ea3c5c6..cbaba3154 100644
--- a/tests/destructor/tdestructor.nim
+++ b/tests/destructor/tdestructor.nim
@@ -22,6 +22,8 @@ myobj destroyed
 '''
 """
 
+{.experimental.}
+
 type
   TMyObj = object
     x, y: int
diff --git a/tests/destructor/tdestructor2.nim b/tests/destructor/tdestructor2.nim
index a5b62860c..1bdf4993b 100644
--- a/tests/destructor/tdestructor2.nim
+++ b/tests/destructor/tdestructor2.nim
@@ -3,6 +3,8 @@ discard """
   errormsg: " usage of a type with a destructor in a non destructible context"
 """
 
+{.experimental.}
+
 type  
   TMyObj = object
     x, y: int