Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignments:load returns type Response #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexKnauth
Copy link

The assignments:load function return type is Response, so no need to call the response? predicate on the page-result since it already has that type.

This change is related to the Typed Racket pull request racket/typed-racket#882, which fixes an unsoundness in opaque-type predicates. This change allows this code to typecheck after the unsoundness is fixed.

However, if response? never returns never changes its result for the same argument value, then this PR makes it simpler, changes no behavior, and lets it typecheck in both versions of typed-racket.

so no need to call the response? predicate on the page-result since it already has that type
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.

None yet

1 participant