summary refs log tree commit diff stats
path: root/tests/compile/tmatrix1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tmatrix1.nim')
-rw-r--r--tests/compile/tmatrix1.nim19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/compile/tmatrix1.nim b/tests/compile/tmatrix1.nim
deleted file mode 100644
index 0adf30b57..000000000
--- a/tests/compile/tmatrix1.nim
+++ /dev/null
@@ -1,19 +0,0 @@
-discard """
-  output: "right proc called"
-"""
-
-type
-  TMatrixNM*[M, N, T] = object 
-    aij*: array[M, array[N, T]]
-  TMatrix2x2*[T] = TMatrixNM[range[0..1], range[0..1], T]
-  TMatrix3x3*[T] = TMatrixNM[range[0..2], range[0..2], T]
-
-proc test*[T] (matrix: TMatrix2x2[T]) =
-  echo "wrong proc called"
-
-proc test*[T] (matrix: TMatrix3x3[T]) =
-  echo "right proc called"  
-
-var matrix: TMatrix3x3[float]
-
-matrix.test