Support constant-backed type aliases in variable declarations (safe + unsafe) with explicit invalid-case errors#104
Merged
Conversation
Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/8fc0bd2a-1ab9-48ec-8014-e759c71a9b63 Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/8fc0bd2a-1ab9-48ec-8014-e759c71a9b63 Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/fd794ed8-8652-40d0-8ca4-9eaa53e5eba2 Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
DanexCodr
April 15, 2026 02:32
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds first-class support for using ALL_CAPS constants that hold
typevalues as variable type aliases (e.g.n: BYTE = 3afterBYTE: type = u8). It also hardens invalid alias paths with explicitProgramErrors for non-constant alias names and non-type alias values.Type alias resolution in variable declarations
Explicit alias validity rules and error messages
ProgramErroris raised with constant-declaration guidance.typevalue, a clearProgramErroris raised with expected declaration format.Type-literal parsing support for unsafe keywords
i8/i16/i32/i64/u8/u16/u32/u64/f32/f64) as type literals, enabling declarations likeBYTE: type = u8.Demo coverage updates
int,float,text,bool.