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

columnOf(arrayOf(1)) type inferred as Array<*> #679

Open
Jolanrensen opened this issue Apr 25, 2024 · 0 comments
Open

columnOf(arrayOf(1)) type inferred as Array<*> #679

Jolanrensen opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@Jolanrensen
Copy link
Collaborator

Jolanrensen commented Apr 25, 2024

Probably related to #678.

columnOf(arrayOf(1)).type shouldBe typeOf<Array<Int>>() but is Array<*> instead.

Other cases, like columnOf(intArrayOf(1)) or columnOf(arrayOf(1, null)) work fine.

DataColumn.createValueColumn("c", listOf(arrayOf(1))) also works fine.

My theory is that it occurs because, due to #678, the classifier of the Array<Int> becomes IntArray, which has no type arguments. Still, it needs to be investigated.

@Jolanrensen Jolanrensen added the bug Something isn't working label Apr 25, 2024
@Jolanrensen Jolanrensen added this to the Backlog milestone Apr 25, 2024
@Jolanrensen Jolanrensen changed the title columnOf(arrayOf(1)) inferred as Array<*> columnOf(arrayOf(1)) type inferred as Array<*> Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant