summary refs log tree commit diff stats
path: root/tests/tconstr2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tconstr2.nim')
-rwxr-xr-xtests/tconstr2.nim20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/tconstr2.nim b/tests/tconstr2.nim
deleted file mode 100755
index 7687a416c..000000000
--- a/tests/tconstr2.nim
+++ /dev/null
@@ -1,20 +0,0 @@
-# Test array, record constructors

-

-type

-  TComplexRecord = tuple[

-    s: string,

-    x, y: int,

-    z: float,

-    chars: set[char]]

-

-const

-  things: array [0..1, TComplexRecord] = [

-    (s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),

-    (s: "hi", x: 69, y: 45, z: 1.0, chars: {})] 

-  otherThings = [  # the same

-    (s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),

-    (s: "hi", x: 69, y: 45, z: 1.0, chars: {'a'})]

-

-write(stdout, things[0].x)

-#OUT 69

-