Nana Vong
12/17/2020, 5:45 AMinline fun <T : Any> fromServerResp(json: String): T {
val baseResp: BaseResp<T> =
Gson().fromJson(json, object : TypeToken<BaseResp<T>>() {}.type)
...
return baseResp.data!!
Why the inline function generates a new class when it is called across modules, but it cannot be called in the same module?Platon Malyugin
12/17/2020, 6:01 AMNana Vong
12/17/2020, 6:49 AMNana Vong
12/17/2020, 6:53 AMkenkyee
12/17/2020, 12:21 PMNana Vong
12/18/2020, 2:49 AMval result = fromServerResp<BlockUserResult>(resp)
like this