Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Fix TC allowing bad schemas in bind, with-read, with-capability#1212

Merged
sirlensalot merged 2 commits intomasterfrom
bug/fix-binding-tc-allows-bad-object-schema
May 1, 2023
Merged

Fix TC allowing bad schemas in bind, with-read, with-capability#1212
sirlensalot merged 2 commits intomasterfrom
bug/fix-binding-tc-allows-bad-object-schema

Conversation

@sirlensalot
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@jwiegley jwiegley left a comment

Choose a reason for hiding this comment

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

Looks great to me, I'll kick off a replay now.

@sirlensalot
Copy link
Copy Markdown
Contributor Author

Looks great to me, I'll kick off a replay now.

This only affects static typechecker so no replay is necessary

@jwiegley
Copy link
Copy Markdown
Contributor

Thanks, @sirlensalot, that should have been obvious to me.

Copy link
Copy Markdown
Contributor

@emilypi emilypi left a comment

Choose a reason for hiding this comment

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

LGTM thanks @sirlensalot 👍

Copy link
Copy Markdown
Contributor

@imalsogreg imalsogreg left a comment

Choose a reason for hiding this comment

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

Great catch! fyi I've verified that my return-types PR now passes tests when rebased on this. (although that's not surprising, because PR-1212 fixes the Pact code that didn't typecheck before).

Replay doesn't need to be involved for PR-1212, but are there any other backward compat issues we need to think about? (e.g. a customer that runs TC and accidentally relied on the previous lax TC behavior?)

@sirlensalot
Copy link
Copy Markdown
Contributor Author

are there any other backward compat issues we need to think about? (e.g. a customer that runs TC and accidentally relied on the previous lax TC behavior?)

In general breaking repl-only compat is ok, and static TC + FV are even more so as they're supposed to be about correctness first. Finally since this goes with the runtime TC fork that certainly trumps repl compat.

@sirlensalot sirlensalot merged commit eb0e243 into master May 1, 2023
@sirlensalot sirlensalot deleted the bug/fix-binding-tc-allows-bad-object-schema branch May 1, 2023 22:10
@jwiegley jwiegley mentioned this pull request May 4, 2023
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants