You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The double[][] in .NET is spitting out bad conversion code. #456
Is this issue just for the name of the function, or for the body as well? Since I was getting build errors trying to use double[][], I switched to List<List<double>>, which fixes the method name but returns an infinitely recursive array. I was expecting output something like [[0,1]] and instead got [0,1,[...]] where the item at index 2 is a reference to the outer array. Looking at the generated code, it's nearly identical to what you have above, so I'm assuming the conversion to double[][] will have the same problem.
Activity
bhalderman-bv commentedon Oct 23, 2025
Is this issue just for the name of the function, or for the body as well? Since I was getting build errors trying to use
double[][], I switched toList<List<double>>, which fixes the method name but returns an infinitely recursive array. I was expecting output something like[[0,1]]and instead got[0,1,[...]]where the item at index 2 is a reference to the outer array. Looking at the generated code, it's nearly identical to what you have above, so I'm assuming the conversion todouble[][]will have the same problem.