Fix #59209.
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 14 Feb 2005 14:26:04 +0000 (14:26 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 14 Feb 2005 14:26:04 +0000 (14:26 -0000)
commitf97b8f7f02f70d0e7df9b33a55d18691b13784ea
treedb09f270769859564bec8f1318ac5bfea82188eb
parentff445ce3824ba5039dbed9a2335380c5fc6f5635
Fix #59209.
* mcs/expression.cs (Invocation.BetterFunction): Remove support for
comparing virtual functions and their overrides.
(Invocation.IsOverride): New.
(Invocation.OverloadResolve): Don't consider 'override' functions
during candidate selection.  Store them in a lookaside list.
If the selected method is a 'virtual' function, use the list to
find any overrides that are closer to the LHS type.

* tests/test-346.cs: New test from #59209.

svn path=/trunk/mcs/; revision=40625
mcs/mcs/ChangeLog
mcs/mcs/expression.cs
mcs/tests/ChangeLog
mcs/tests/Makefile
mcs/tests/test-346.cs [new file with mode: 0644]