summary refs log tree commit diff stats
path: root/tests/concepts/t5642.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/concepts/t5642.nim')
-rw-r--r--tests/concepts/t5642.nim25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/concepts/t5642.nim b/tests/concepts/t5642.nim
deleted file mode 100644
index f08b4629b..000000000
--- a/tests/concepts/t5642.nim
+++ /dev/null
@@ -1,25 +0,0 @@
-discard """
-  output: 9
-"""
-
-type DataTable = concept x
-  x is object
-  for f in fields(x):
-    f is seq
-
-type Students = object
-   id : seq[int]
-   name : seq[string]
-   age: seq[int]
-
-proc nrow*(dt: DataTable) : Natural =
-  var totalLen = 0
-  for f in fields(dt):
-    totalLen += f.len
-  return totalLen
-
-let
-  stud = Students(id : @[1,2,3], name : @["Vas", "Pas", "NafNaf"], age : @[10,16,32])
-
-echo nrow(stud)
-