Skip to content

fix: Fix incorrect type casting in getTyped - #274

Closed
midhunaviyash07-cyber wants to merge 1 commit into
spotify:mainfrom
midhunaviyash07-cyber:patch-1
Closed

midhunaviyash07-cyber wants to merge 1 commit into
spotify:mainfrom
midhunaviyash07-cyber:patch-1

Conversation

@midhunaviyash07-cyber

Copy link
Copy Markdown

No description provided.

@midhunaviyash07-cyber midhunaviyash07-cyber changed the title Fix type casting in getTyped function Fix incorrect type casting in getTyped Oct 24, 2026
@midhunaviyash07-cyber midhunaviyash07-cyber changed the title Fix incorrect type casting in getTyped fix: Fix incorrect type casting in getTyped Oct 24, 2026

@dxnnystyles dxnnystyles left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new outer switch value.type() has a let result declaration before any case, w/ the existing conversion switch still nested inside it. swift test --disable-sandbox fails compilation here w/ all statements inside a switch must be covered by a 'case' or 'default'. could we remove the extra switch + rerun the tests? rn this head doesn't compile.

@nicklasl

nicklasl commented Nov 2, 2026

Copy link
Copy Markdown
Member

Before we wind this down — did you happen to catch the #271 discussion where @fabriziodemaria explains why value as? T doesn't give the fast path it looks like (it skips the null-flag → default-value handling)? Either way this touches the exact lines #272 deletes, so I guess we'll close this one as superseded — but really appreciate you digging in, and a sentence or two in the PR body (plus your now-green title, nicely done) will make your next one fly through review.

@nicklasl nicklasl closed this Nov 2, 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.

3 participants