Kotlin AndroidServiceClient - ServiceStack references

Hello,

When generating ServiceStack references static property responseType is not properly generated.
Example:

@Route("/user")
open class UserRequest : IReturn<UserResponse>
{
    companion object { private val responseType = UserResponse::class.java }
    override fun getResponseType(): Any? = responseType //error - getting infinite loop
}

I think that it should be:

@Route("/user")
open class UserRequest : IReturn<UserResponse>
{
    companion object { private val responseType = UserResponse::class.java }
    override fun getResponseType(): Any? = UserRequest.responseType
}

It looks like Kotlin changed this behavior, I’ve resolved this issue as suggested in this commit.

This change is available from v4.5.1 that’s now available on MyGet