Skip to content

Add ternary operator type inference tests#30

Merged
dak2 merged 1 commit intomainfrom
ternary-operator-support
Feb 22, 2026
Merged

Add ternary operator type inference tests#30
dak2 merged 1 commit intomainfrom
ternary-operator-support

Conversation

@dak2
Copy link
Owner

@dak2 dak2 commented Feb 22, 2026

Ternary expressions (a ? b : c) are parsed as IfNode by ruby_prism, so existing conditional handling already supports them. Add tests to verify and prevent regressions.

Ternary expressions (a ? b : c) are parsed as IfNode by ruby_prism,
so existing conditional handling already supports them. Add tests to
verify and prevent regressions.
@dak2 dak2 merged commit 675ac53 into main Feb 22, 2026
2 checks passed
@dak2 dak2 deleted the ternary-operator-support branch February 22, 2026 13:43
@dak2 dak2 mentioned this pull request Feb 23, 2026
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.

1 participant