summary refs log tree commit diff stats
path: root/tests/xml/ttree_insert.nim
Commit message (Expand)AuthorAgeFilesLines
* Feature/xmltree additions (#20988)Michael Voronin2022-12-221-0/+53
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


















                                                         
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