Browse files

Work around the fact that MethodInfo.ReturnParameter throws NotImplem…

…entedException on WP7.

(cherry picked from commit 8092e17)
  • Loading branch information...
1 parent 7c306ee commit f8cce37420838b8197f31eedb1e04ae3a2e102ac @jdhardy jdhardy committed Mar 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Languages/IronPython/IronPython/Runtime/Binding/SlotOrFunction.cs
View
4 Languages/IronPython/IronPython/Runtime/Binding/SlotOrFunction.cs
@@ -87,8 +87,8 @@ sealed class SlotOrFunction {
public bool MaybeNotImplemented {
get {
if (_function != null) {
- ParameterInfo ret = _function.Overload.ReturnParameter;
- return ret != null && ret.IsDefined(typeof(MaybeNotImplementedAttribute), false);
+ var method = _function.Overload.ReflectionInfo as MethodInfo;
+ return method != null && method.IsDefined(typeof(MaybeNotImplementedAttribute), false);
}
return true;

0 comments on commit f8cce37

Please sign in to comment.