From fceef773015bd7f764c51549ec20768b5e9f5eb1 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 7 Apr 2017 21:57:04 +0300 Subject: test case for #5640 --- tests/types/t5640.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/types/t5640.nim (limited to 'tests') 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]) + -- cgit 1.4.1-2-gfad0