Closed slavaschmidt closed 7 years ago
The same specification demonstrates that the generated result type is wrong as well:
def Get200(resultP: Enum[String])(implicit writerP: String => Option[Writeable[Enum[String]]]) = success(new GetType[Enum[String]] { val statusCode = 200; val result = resultP; val writer = writerP })
def Get200(resultF: Future[Enum[String]])(implicit writerP: String => Option[Writeable[Enum[String]]]) = resultF map { resultP => (new GetType[Enum[String]] { val statusCode = 200; val result = resultP; val writer = writerP }) }
def Get200(resultP: GetResponses200)(implicit writerP: String => Option[Writeable[GetResponses200]]) = success(new GetType[GetResponses200] { val statusCode = 200; val result = resultP; val writer = writerP })
def Get200(resultF: Future[GetResponses200])(implicit writerP: String => Option[Writeable[GetResponses200]]) = resultF map { resultP => (new GetType[GetResponses200] { val statusCode = 200; val result = resultP; val writer = writerP }) }
Fixed on 0.2
The example spec: