summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-07 21:57:04 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-07 21:57:04 +0300
commitfceef773015bd7f764c51549ec20768b5e9f5eb1 (patch)
treed3d44b1abb3d0a6985d03db15001fdd386a70248 /tests
parent0b7321651efdc08c6d45ec83c2ae3373a1ae4483 (diff)
downloadNim-fceef773015bd7f764c51549ec20768b5e9f5eb1.tar.gz
test case for #5640
Diffstat (limited to 'tests')
-rw-r--r--tests/types/t5640.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/types/t5640.nim b/tests/types/t5640.nim
new file mode 100644
index 000000000..5e1c99c4d
--- /dev/null
+++ b/tests/types/t5640.nim
@@ -0,0 +1,6 @@
+type
+  vecBase[I: static[int]] = distinct array[I, float32]
+  vec2* = vecBase[2]
+
+var v = vec2([0.0'f32, 0.0'f32])
+