From 96dd8f1729ad72e29dbe08dd01bc0ba08446dbe6 Mon Sep 17 00:00:00 2001 From: subk Date: Mon, 28 Nov 2016 22:18:17 +0100 Subject: [PATCH] set resolvedResponseType on resolve(), fixes #497 --- src/method.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/method.js b/src/method.js index f0efc2d4e..dfe38e22a 100644 --- a/src/method.js +++ b/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); };