Skip to content

Kotlin Maps with non-string non-numeric keys should map to Map instead of an Object #16

Description

@brezinajn

Kotlin Maps using keys other than number and string should map to Map instead of object.

data class Foo(val map: Map<Key, String>)

maps to

interface Foo{
    map: { [key: Key]: string };
}

which is invalid. It should map to

interface Foo{
    map: Map<Key, string>
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions