Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Work around the fact that MethodInfo.ReturnParameter throws NotImplem…

…entedException on WP7.

(cherry picked from commit 8092e17)
  • Loading branch information...
commit f8cce37420838b8197f31eedb1e04ae3a2e102ac 1 parent 7c306ee
@jdhardy jdhardy authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.