Skip to content

Allow typecast statement on all variables#1622

Merged
TwitchBronBron merged 2 commits intov1from
allow_typecast_statement_on_all_variables
Feb 17, 2026
Merged

Allow typecast statement on all variables#1622
TwitchBronBron merged 2 commits intov1from
allow_typecast_statement_on_all_variables

Conversation

@markwpearce
Copy link
Collaborator

@markwpearce markwpearce commented Feb 12, 2026

  • Allows typecast statements in all blocks (like in If statements)
  • If you're in a function, you can use typecast statement on any variable
  • Only one typecast statement per variable per block is allowed.
  • Typecasts must be the first statements in a block
  • Makes typecast statement useful for type narrowing
image

@markwpearce markwpearce added this to the v1.0.0 milestone Feb 12, 2026
@TwitchBronBron TwitchBronBron merged commit 9e8e06b into v1 Feb 17, 2026
6 checks passed
@TwitchBronBron TwitchBronBron deleted the allow_typecast_statement_on_all_variables branch February 17, 2026 14:01
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.

2 participants

Comments