Skip to content

fix: realising of built-in types, hard-coded aliases#247

Open
gerau wants to merge 3 commits intoBlockstreamResearch:masterfrom
gerau:feat/type-aliasing
Open

fix: realising of built-in types, hard-coded aliases#247
gerau wants to merge 3 commits intoBlockstreamResearch:masterfrom
gerau:feat/type-aliasing

Conversation

@gerau
Copy link
Contributor

@gerau gerau commented Mar 19, 2026

Closes #235 and partially closes #202.

There are 3 small and separate fixes:

  1. Remove hard-coded built-in aliases from the parser, so all alias checking is in types.rs
  2. Adds check for redefining built-in aliases and types in TypeAlias parsing function. It uses the same logic as the first fix, so I included it here.
  3. Fix small typo within TypeInner display function -- there are missing whitespace after comma inside Either type. You can see this issue in this PR for simplicitiy-lang-org. It's a small enough change that I thought I could include it here.

Would be happy to split this up if needed.

@gerau gerau requested a review from delta1 as a code owner March 19, 2026 14:42
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.

Disallow re-aliasing of built-in types Hardcoded built-ins

1 participant