Skip to content

Remove unnecessary type casting#1736

Draft
compnerd wants to merge 3 commits into
swiftlang:mainfrom
compnerd:typecast
Draft

Remove unnecessary type casting#1736
compnerd wants to merge 3 commits into
swiftlang:mainfrom
compnerd:typecast

Conversation

@compnerd

Copy link
Copy Markdown
Member

The compiler now imports these as their canonical type, allowing us to directly use without the explicit type cast.

@grynspan

Copy link
Copy Markdown
Contributor

Well… clearly not. 😄

Keep in mind we intend for our main branch to compile against the previous release (which is still 6.3 for now).

The compiler now imports these as their canonical type, allowing us to
directly use without the explicit type cast.
@compnerd

Copy link
Copy Markdown
Member Author

Clearly it does! You just didn't cherry-pick all the necessary bundled changes :)

We will likely have to split this into two changes - force the types to the correct shapes where we were incorrect, and then we can do the clean up on the explicit types later.

@grynspan

Copy link
Copy Markdown
Contributor

Oh I figured there were upstream changes we'd need. But we won't be able to accept this PR while we still need to build for 6.3.

@compnerd

compnerd commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Ah, that is unfortunate. But, understandable, we can live with this until we can adopt (hopefully) the next release.

@grynspan grynspan added windows 🪟 Windows support tech-debt 💾 reduces technical debt labels Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tech-debt 💾 reduces technical debt windows 🪟 Windows support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants