[test] Test SRE of a class with two methods with the same name.
authorAleksey Kliger <aleksey@xamarin.com>
Thu, 8 Jun 2017 21:44:54 +0000 (17:44 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Thu, 8 Jun 2017 21:47:42 +0000 (17:47 -0400)
commitdd0eab4247bf5c427471fd450b9e7400b1a9a7b1
treea633328959f568b125bc3b7c87e09391c6cdd788
parent64d523c524d00b54088803a35cd08bb66a70f498
[test] Test SRE of a class with two methods with the same name.

Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=57222

Although methods aren't affected by this bug, I added a regression test for
this case anyway in case the implementation changes.

Currently MethodBuilder.RuntimeResolve() goes through a different codepath - it
calls RuntimeType.GetMethod (MethodInfo) which calls into an icall which looks
for a method with a matching token rather than a matching name.
mcs/class/corlib/Test/System.Reflection.Emit/TypeBuilderTest.cs