Skip to content

Conversation

@mitchellwrosen
Copy link
Member

Overview

This PR makes alias.type also alias constructors (of non-builtin types). For example with

type Foo = Foo

if you run alias.type Foo Bar you'll end up with the alias

type Bar = Foo

rather than (on trunk)

type Bar = #bustedhash

If a term already exists at any of the constructors' names, it'll fail with a "term already exists" error.

Test coverage

Transcript included

@mitchellwrosen mitchellwrosen marked this pull request as ready for review January 8, 2026 17:01
Copy link
Contributor

@aryairani aryairani left a comment

Choose a reason for hiding this comment

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

Looks good but re. transcripts, reminder to please optimize them for reading. Add some short text indicating what we're demonstrating (I think this part is already there) and what we're looking for in the output to know that it worked. Hide typechecking output (and probably most other output) unless reviewing the output is part of the feature or scenario being demonstrated. Otherwise the demo is lost in the noise like in this case.

@mitchellwrosen mitchellwrosen merged commit 4395325 into trunk Jan 15, 2026
32 checks passed
@mitchellwrosen mitchellwrosen deleted the 26-01-06-type-alias-fix branch January 15, 2026 17:05
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