[Mono-dev] Confusion between float and System.Single

McLachlan, Charles CMcLachlan at illumina.com
Thu Aug 26 05:48:53 EDT 2010


Gmcs from the version of mono I git cloned yesterday (25th August) has
produced an error where there was no error using mono 2.6.7


error CS1502: The best overloaded method match for `ClassA.Go(float[][],
System.Collections.Generic.List<System.Single[][]>, int, int, byte[]'
has some invalid arguments
blah.dll (Location of the symbol related to previous error)
blahCaller.cs(1650,68): error CS1503: Argument `#2' cannot convert
`System.Collections.Generic.List<float[][]>' expression to type
`System.Collections.Generic.List<System.Single[][]>'

This is part of a large project. I have not yet produced a simple
minimal failing program. ClassA.Go is a function in a separate dll
(blah.dll). i.e. the command line is something like

 gmcs -unsafe -optimize+ blashCaller.cs -r:blah.dll

The argument that I pass to ClassA.Go is indeed a List<float[][]>. This
exact same error is generated if I pass a List<System.Single[][]>. The
function ClassA.Go definition is

public unsafe static void Go(

            float[][] FirstCycleIntensities,

            System.Collections.Generic.List<float[][]> AllIntensities,
// corrected intensities by cycle, channel, cluster

            int CycleIndex,              // current cycle index in above
intensities

            int CycleToScore,            // cycle we are going to score 

            byte[] Calls,                // calls for this cycle

            QualityMetrics Metrics)      // [in/out] contains counters


More information about the Mono-devel-list mailing list