summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2016-11-30 23:00:44 +0200
committerZahary Karadjov <zahary@gmail.com>2017-01-08 23:24:27 +0200
commitbf612a7f19e0e6a112b0169185b0bb3a34b2722d (patch)
treea609ab75d54090f51abed0ca85153907202aa5e4 /tests
parent5947403e84ba44397b35f93f9d327c76e794210f (diff)
downloadNim-bf612a7f19e0e6a112b0169185b0bb3a34b2722d.tar.gz
fix #4884
Diffstat (limited to 'tests')
-rw-r--r--tests/generics/t4884.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/generics/t4884.nim b/tests/generics/t4884.nim
new file mode 100644
index 000000000..9a560f649
--- /dev/null
+++ b/tests/generics/t4884.nim
@@ -0,0 +1,11 @@
+type
+  Vec*[N: static[int], T] = object
+    arr*: array[N, T]
+
+  Mat*[N,M: static[int], T] = object
+    arr*: array[N, Vec[M,T]]
+
+var m : Mat[3,3,float]
+var strMat : Mat[m.N, m.M, string]
+var lenMat : Mat[m.N, m.M, int]
+