Skip to content

Conversation

@joergen7
Copy link
Contributor

@joergen7 joergen7 commented Nov 26, 2024

Checklist

  • Bugfix
  • Feature
  • tests included
  • documentation

See also: Issue #1415

In (untyped) racket, the XML collection uses a source struct whose fields start and stop follow the contract location/c. The location/c contract is defined as follows:

(or/c location? symbol? #f)

However, in typed/racket the aforementioned fields are typed as Location which represents only the struct but neither symbols nor false.

This pull request extends the typing of source's start and stop to entail both symbols and false typing them as

(U Location Symbol False)

@joergen7 joergen7 changed the title fix correspondence between location? and Location in typed/racket Fix correspondence between location/c and Location in typed/racket Nov 26, 2024
@joergen7
Copy link
Contributor Author

Two workflows await approval.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Resyntax analyzed 0 files in this pull request and found no issues.

@samth samth merged commit a01eb21 into racket:master Jan 3, 2025
5 checks passed
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