Skip to content

Commit

Permalink
set resolvedResponseType on resolve(), fixes #497
Browse files Browse the repository at this point in the history
  • Loading branch information
subk committed Nov 28, 2016
1 parent 66ac3f1 commit 96dd8f1
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 96dd8f1

Please sign in to comment.