Skip to content

Fail compilation on using non-serializable parameter / return type #547

@natanfudge

Description

@natanfudge

In this case:

@Rpc
class MyService {
    fun foo() : SomeClass
}

data class SomeClass(x: Int)

It would be a better user experience if this failed to compile instead of introducing a runtime error, given that SomeClass is not @serializable.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions