* Binder.cs (check_arguments): Allow a type to match its byref version.
Fixes #520690.
svn path=/trunk/mcs/; revision=137663
private static bool check_arguments (Type[] types, ParameterInfo[] args) {
for (int i = 0; i < types.Length; ++i) {
- if (!check_type (types [i], args [i].ParameterType))
+ bool match = check_type (types [i], args [i].ParameterType);
+ if (!match && args [i].ParameterType.IsByRef)
+ match = check_type (types [i], args [i].ParameterType.GetElementType ());
+ if (!match)
return false;
}
return true;
+2009-07-10 Zoltan Varga <vargaz@gmail.com>
+
+ * Binder.cs (check_arguments): Allow a type to match its byref version.
+ Fixes #520690.
+
2009-06-12 Zoltan Varga <vargaz@gmail.com>
* ParameterInfo.cs (DefaultValue): Add support for decimals, their default