[Mono-devel-list] RFA: Fix for bug 61128

Raja R Harinath rharinath at novell.com
Wed Sep 1 10:03:53 EDT 2004


Hi,

I'm attaching a fix for bug 61128.

The basic idea is to make OverloadResolve robust to the MethodGroupExpr
being unsorted.  This is quite easy, assuming all the applicable methods
belong to the same lineage in the type hierarchy.

I have ignored the case where applicable methods from multiple lineages
have to be overloaded.  I know what to do, and will submit that as a
separate patch.

While at it, I removed some awkward coding in the first pass of choosing
a 'best' method that probably dated to when the 'candidates' array was
being traversed with a 'foreach'.  This allowed me to remove some
redundant code elsewhere.

OK to apply?
- Hari

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug61128.diff
Type: application/octet-stream
Size: 13440 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040901/56eb4306/attachment.obj 


More information about the Mono-devel-list mailing list