Skip to content

Abort: remove usage of erased Tags#1446

Open
hearnadam wants to merge 2 commits intomainfrom
abort-tags
Open

Abort: remove usage of erased Tags#1446
hearnadam wants to merge 2 commits intomainfrom
abort-tags

Conversation

@hearnadam
Copy link
Collaborator

Related to #1247 and #1443

Problem

Erased tags are leftover from earlier limitations with splicing and subtype checking of tags.

Solution

Require tag evidences in all Abort methods.

Comment on lines +432 to +435
Abort.run[E | Closed](emit).map:
case Result.Failure(_: Closed) => ()
case Result.Failure(e: E @unchecked) => Abort.fail[E](e)
case _ => ()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure what changed about the APIs or type inference, but my previous attempt did not need this, see: #1333

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