diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2010-01-19 15:47:09 +0300 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2010-01-19 15:47:09 +0300 |
commit | 40efb6e9566e4e7f3c92455eba96893e142c9208 (patch) | |
tree | a76d635795589104495c47f3462a70e4f7672ec6 /mcs | |
parent | d03f013239bc29d923a12aef16985d1150ce281d (diff) |
2010-01-19 Rodrigo Kumpera <rkumpera@novell.com>
* TypeTest.cs: Add test for GetGenericMethodDefinition of inflated
generic methods on a GTD.
svn path=/trunk/mcs/; revision=149809
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/corlib/Test/System/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/Test/System/TypeTest.cs | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System/ChangeLog b/mcs/class/corlib/Test/System/ChangeLog index 1d92359a7aa..7455293513d 100644 --- a/mcs/class/corlib/Test/System/ChangeLog +++ b/mcs/class/corlib/Test/System/ChangeLog @@ -1,3 +1,8 @@ +2010-01-19 Rodrigo Kumpera <rkumpera@novell.com> + + * TypeTest.cs: Add test for GetGenericMethodDefinition of inflated + generic methods on a GTD. + 2010-01-15 Atsushi Enomoto <atsushi@ximian.com> * DateTimeTest.cs : commented out ParseExact() case that tests diff --git a/mcs/class/corlib/Test/System/TypeTest.cs b/mcs/class/corlib/Test/System/TypeTest.cs index 81043a39987..a061fa0b039 100644 --- a/mcs/class/corlib/Test/System/TypeTest.cs +++ b/mcs/class/corlib/Test/System/TypeTest.cs @@ -2055,6 +2055,15 @@ PublicKeyToken=b77a5c561934e089")); } [Test] + public void GetGenericMethodDefinitionOverInflatedMethodOnGTD () { + var l = typeof (List<>); + var m = l.GetMethod ("ConvertAll"); + var infl = m.MakeGenericMethod (typeof (int)); + var res = m.GetGenericMethodDefinition (); + Assert.AreEqual (m, res, "#1"); + } + + [Test] public void InvokeMember_OutParam () { object[] args = new object[] { new string [0] }; |