Cyril Find
11/03/2020, 8:39 AMType mismatch: inferred type is Long? but Any was expected
error on the Long?
type in generated methods that look like this override fun ReadPost(): GrpcCall<Long?, Post> =...
(from rpc ReadPost(google.protobuf.UInt64Value) returns (Post) {}
)
I dont understand what's going on and I can't seem to find anything on SO or anywhere. It's the first time I use this kinda stuff so maybe I forgot something silly ?Cyril Find
11/03/2020, 11:09 AMUINT64_VALUE: ProtoAdapter<Long?>
but GrpcCall
doesn't accept nullables: interface GrpcCall<S : Any, R : Any>
Cyril Find
11/03/2020, 12:17 PMgoogle.protobuf.UInt64Value
by a redefined CustomUInt64Value { uint64 value = 1; }
works but it seems weird to me
is this a bug i should file somewhere ?egorand
11/04/2020, 1:42 AMCyril Find
11/04/2020, 1:39 PM