Skip to content

Method descriptor lies about return type if return type is Flow #523

@rnett

Description

@rnett

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

Kotlin 2.0.21, kotlin-rpc 0.10.1

Create a descriptor for a method that returns Flow<...>

Expected behavior

The descriptor's returnType.kType is Flow<...>

Actual behavior

returnType.kType is just the flow's type argument.

Additional context

If this needs to be kept for internal reasons, a isFlow property on the RpcType or method descriptor would be helpful. isNonSuspendFunction seems to provide the same value, but doesn't necessarily have the same contract.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions