Skip to content

Conversation

@thevilledev
Copy link
Contributor

Correctly handle mixed array types (e.g. []int vs [][]int) in ternary expressions by falling back to generic array type when element types differ.

Fixes #819

Correctly handle mixed array types (e.g. `[]int` vs `[][]int`) in
ternary expressions by falling back to generic array type when element
types differ.

Signed-off-by: Ville Vesilehto <[email protected]>
@antonmedv
Copy link
Member

Nice!

@antonmedv antonmedv merged commit ad49544 into expr-lang:master Nov 28, 2025
16 checks passed
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.

Bug when running expressions where a variable can be either an array or array of arrays.

2 participants