Skip to content

Inconsistent handling of interfaces and enums by serializer function #1077

Open
@qwwdfsad

Description

@qwwdfsad

Currently, serializer<T>() successfully lookups serializer for interfaces and implicitly serializable enums only on JVM due to reflection restriction. It also affects all reified functions such as Json.encodeToString<T>(value)

We have to lift this restriction in the language and provide a consistent experience across all platforms.
Also, see https://youtrack.jetbrains.com/issue/KT-41339

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions