make tests green again

This commit is contained in:
Andreas Rumpf 2018-07-05 15:51:04 +02:00
commit 0926754e68
31 changed files with 61 additions and 55 deletions

View file

@ -1,5 +1,5 @@
type
Matrix*[M, N: static[int], T: SomeReal] = object
Matrix*[M, N: static[int], T: SomeFloat] = object
data: ref array[N * M, T]
Matrix64*[M, N: static[int]] = Matrix[M, N, float64]

View file

@ -4,7 +4,7 @@
## Created by Eric Doughty-Papassideris on 2011-02-16.
type
TGen[T] = object of TObject
TGen[T] = object of RootObj
x, y: T
TSpef[T] = object of TGen[T]

View file

@ -1,11 +1,11 @@
type
TProperty[T] = object of TObject
TProperty[T] = object of RootObj
getProc: proc(property: TProperty[T]): T {.nimcall.}
setProc: proc(property: TProperty[T], value: T) {.nimcall.}
value: T
proc newProperty[T](value: TObject): TProperty[T] =
proc newProperty[T](value: RootObj): TProperty[T] =
result.getProc = proc (property: TProperty[T]) =
return property.value

View file

@ -4,7 +4,7 @@ discard """
"""
type
Matrix[M,N: static[int]; T: SomeReal] = distinct array[0..(M*N - 1), T]
Matrix[M,N: static[int]; T: SomeFloat] = distinct array[0..(M*N - 1), T]
let a = new Matrix[2,2,float]
let b = new Matrix[2,1,float]