Permalink
Browse files

set resolvedResponseType on resolve(), fixes #497

  • Loading branch information...
subk committed Nov 28, 2016
1 parent 66ac3f1 commit 96dd8f1729ad72e29dbe08dd01bc0ba08446dbe6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/method.js
@@ -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);
/**
@@ -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.