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

Fix cast of empty set to type with access policy #6151

Merged
merged 1 commit into from Sep 23, 2023
Merged

Conversation

msullivan
Copy link
Member

The bug here was that the _inline_type_computable passed the wrong
context, which could blow up, but only if the type had an access
policy that hadn't been compiled yet (since we would then try to
compile it), which is why it triggered in this case.

Fixes #6070.

The bug here was that the _inline_type_computable passed the wrong
context, which could blow up, but only if the type had an access
policy that hadn't been compiled yet (since we would then try to
compile it), which is why it triggered in this case.

Fixes #6070.
@msullivan msullivan merged commit 835f85f into master Sep 23, 2023
22 checks passed
@msullivan msullivan deleted the empty-pol-cast branch September 23, 2023 00:00
msullivan added a commit that referenced this pull request Sep 23, 2023
The bug here was that the _inline_type_computable passed the wrong
context, which could blow up, but only if the type had an access
policy that hadn't been compiled yet (since we would then try to
compile it), which is why it triggered in this case.

Fixes #6070.
msullivan added a commit that referenced this pull request Sep 27, 2023
The bug here was that the _inline_type_computable passed the wrong
context, which could blow up, but only if the type had an access
policy that hadn't been compiled yet (since we would then try to
compile it), which is why it triggered in this case.

Fixes #6070.
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.

AssertionError: Calling new() on a context other than the current one on empty cast with access policy
2 participants