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

Generic types are erased  #35

@ifropc

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

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