Skip to content

Subscribe to Post wont work for cases like post(getMethod()) #17

@thsaravana

Description

@thsaravana

fun getMethod() : Type = Unit

bus.post(getMethod())

@Subscribe
fun subcribe(type: Type) {
}

In the above case, Post to Subscribe connection would work. But Subscribe to Post connection doesn't. We first need to find the usages of Type.. and from that find out the usages were Type is a return type of a Method. Then take those methods and find usages for those and then filter out all the cases where the method is used as a ValueArgument of post method. This will establish the connection.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions