Skip to content

Commit

Permalink
Merge pull request #498 from subk/master
Browse files Browse the repository at this point in the history
set resolvedResponseType on resolve(), fixes #497
  • Loading branch information
dcodeIO authored Nov 28, 2016
2 parents 66ac3f1 + 96dd8f1 commit ae6f474
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Method(name, type, requestType, responseType, requestStream, responseSt
throw _TypeError("requestType");
if (!util.isString(responseType))
throw _TypeError("responseType");

ReflectionObject.call(this, name, options);

/**
Expand Down Expand Up @@ -130,5 +130,6 @@ MethodPrototype.resolve = function resolve() {
resolved = this.parent.lookup(this.responseType);
if (!(resolved && resolved instanceof Type))
throw Error("unresolvable response type: " + this.requestType);
this.resolvedResponseType = resolved;
return ReflectionObject.prototype.resolve.call(this);
};

0 comments on commit ae6f474

Please sign in to comment.