Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brezinajn opened this issue Mar 15, 2019 · 0 comments · May be fixed by #39
Open

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

brezinajn opened this issue Mar 15, 2019 · 0 comments · May be fixed by #39

Comments

@brezinajn
Copy link

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>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant