Skip to content

Improve type detection of literals in ternary expressions#527

Open
PiTheGuy wants to merge 2 commits intoVineflower:develop/1.12.0from
PiTheGuy:fix-char-in-ternary
Open

Improve type detection of literals in ternary expressions#527
PiTheGuy wants to merge 2 commits intoVineflower:develop/1.12.0from
PiTheGuy:fix-char-in-ternary

Conversation

@PiTheGuy
Copy link

This PR fixes an issue where int literals between 32768 - 65535 were displayed as char literals even if they were in a ternary expression whose other side was an int.

@jaskarth jaskarth added Type: Enhancement New feature or request Priority: Medium Medium priority Subsystem: Variables Anything concerning variables, types, assignments, and casting labels Dec 17, 2025
@jaskarth
Copy link
Member

jaskarth commented Dec 17, 2025

Hey, thanks a lot for the PR! Could you check if this test produces the proper result on develop/1.12.0 without the change to FunctionExprent? There was an earlier change that aimed to fix this: 5237b68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Medium Medium priority Subsystem: Variables Anything concerning variables, types, assignments, and casting Type: Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants