Skip to content

[BUG][Kotlin] Fixed primitive type check for array of array #21500

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreas-umbricht
Copy link
Contributor

@andreas-umbricht andreas-umbricht commented Jun 30, 2025

Description

Upon PR #21315, a feature was included, so that code is generated of to check that in a list of primitive types, the items in that list are in fact a primitive. Now I discovered an edge case:

Current behavior:

A list of a list currently also generate the code, which then leads to false assertions.

Excpected behavior:

The code added in the PR is not being generated for a list of a list.

I do not really understand why a list is considered a primitive type here, but I simply had to add another if statement to check for such a case.

@dr4ke616 @karismann @Zomzog @andrewemery @4brunu @stefankoppier @e5l

@4brunu
Copy link
Contributor

4brunu commented Jul 1, 2025

Hi @andreas-umbricht did you tested this locally? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants