* MonoType.cs : (GetMethod) when zero-length type[] is explicitly
passed, don't return methods with some arguments. Fixed bug #77367.
* TypeTest.cs : added test for bug #77367.
svn path=/trunk/mcs/; revision=59911
+2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
+
+ * MonoType.cs : (GetMethod) when zero-length type[] is explicitly
+ passed, don't return methods with some arguments. Fixed bug #77367.
+
2006-04-21 Gert Driesen <drieseng@users.souceforge.net>
* Enum.cs: Provide meaningful message when type of passed in value
if (count == 0)
return null;
- if (count == 1 && typesLen == 0)
+ if (count == 1 && types == null)
return (MethodInfo) CheckMethodSecurity (found);
match = new MethodBase [count];
+2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
+
+ * TypeTest.cs : added test for bug #77367.
+
2006-03-31 Zoltan Varga <vargaz@gmail.com>
* EnvironmentTest.cs: Add tests for SetEnvironmentVariable.
typeof (BindingFlags).GetConstructor (BindingFlags.Default, null, CallingConventions.Any, new Type[1] { null }, null);
}
+ [Test]
+ public void GetMethod_Bug77367 ()
+ {
+ MethodInfo i = typeof (Bug77367).GetMethod ("Run", Type.EmptyTypes);
+ Assert.IsNull (i);
+ }
+
#if NET_2_0
[Test]
public void FullNameGenerics ()
struct FooStruct {
}
+
+ public class Bug77367
+ {
+ public void Run (bool b)
+ {
+ }
+ }
}
}