summary refs log tree commit diff stats
path: root/tests/objects/twhen1.nim
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2020-04-25 18:59:56 +0100
committerGitHub <noreply@github.com>2020-04-25 19:59:56 +0200
commit13fa338ada7fcd8f7f33365ffd2000c79a4607fe (patch)
tree51dc65763798358f850172003c7e8a1e0469b43a /tests/objects/twhen1.nim
parentf3eeb3f921edb1d70e751eb6262e3e87f9b1e806 (diff)
downloadNim-13fa338ada7fcd8f7f33365ffd2000c79a4607fe.tar.gz
implement (#14114)
Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'tests/objects/twhen1.nim')
-rw-r--r--tests/objects/twhen1.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/objects/twhen1.nim b/tests/objects/twhen1.nim
index 2301d255a..5b8eea3f4 100644
--- a/tests/objects/twhen1.nim
+++ b/tests/objects/twhen1.nim
@@ -49,3 +49,9 @@ block:
 
 block:
   var x: Foo4[0]
+
+type
+  MyObject = object
+    x: int
+    when (NimMajor, NimMinor) >= (1, 1):
+      y: int