Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Generic types are erased  #35

Description

@ifropc

Hi!
I noticed an issue with exporting generic classes. For example, typescript map

@KustomExport
class Foo {
  fun bar(
    map: Map<String>,
  ) {}
}

Will generate following kotlin code:

public fun bar(map: Map): Unit {
    val result = common.bar(
        map = map,
    )
    return result
}

Erasing Map's type

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions