Got a bug to report. I haven't narrowed down a small case, but it's also not too large. I have one fathom file, Matrix.fan:
using [java] fanx.interop::DoubleArray as FloatArray
class Matrix {
private FloatArray imag
private Int m
private Int n
private FloatArray real
new make(Num[][] rows := Float[][,]) {
m = rows.size
n = 0
//rows.each |Num[] row| {
// TODO Check for complex.
// n = n.max(row.size)
//}
echo(m)
real = FloatArray(m * n)
echo(real.size)
}
}
And one test file:
class MatrixTest: Test {
Void testAdd() {
matrix := Matrix([
[1, 2],
[3, 4]
])
}
}
tompalmer Wed 31 Dec 2008
Got a bug to report. I haven't narrowed down a small case, but it's also not too large. I have one fathom file, Matrix.fan:
And one test file:
And I get this error:
This is on Fan 1.0.36 on 32-bit Linux and Java 6.
brian Wed 31 Dec 2008
Thanks for your bug report Tom.
It actually comes down to one line in how I was generating the wrappers for parameter defaults:
I pushed a fix to hg and added a test for that case.
tompalmer Wed 31 Dec 2008
Thanks for the quick reply.
tompalmer Wed 14 Jan 2009
I've tested that this error is now fixed for me in 1.0.37.