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(compiler): lifting globals from inflight classes defined in preflight fails #5559
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening this pull request! 🎉
|
Console preview environment is available at https://wing-console-pr-5559.fly.dev 🚀 Last Updated (UTC) 2024-03-10 09:41 |
BenchmarksComparison to Baseline ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜ Within 1.5 standard deviations Benchmarks may vary outside of normal expectations, especially when running in GitHub Actions CI. Results
Last Updated (UTC) 2024-03-10 09:47 |
Signed-off-by: monada-bot[bot] <monabot@monada.co>
…nglang/wing into yoav/qualify_err_closure_lift
(inflight closures transformation now produces an inflight class)
…LifeableModuleType`
Because the type system can't distinguish between a closure class (which needs to be lifted) and a regular function type... Also lift on reference and not all call, by assuming a ref to a closure will actually call it later on, we can correctly lift (and setup permissions) for closures stored in collections (for example). This is a special exception to our qualification rules, since closures only have a single method (`handle`) so we can implicitly qualify it.
so we're sure the type is lifted
Signed-off-by: monada-bot[bot] <monabot@monada.co>
Signed-off-by: monada-bot[bot] <monabot@monada.co>
…nglang/wing into yoav/qualify_err_closure_lift
Signed-off-by: monada-bot[bot] <monabot@monada.co>
this should resolve issue with lifting the type base class of inflight classes.
Signed-off-by: monada-bot[bot] <monabot@monada.co>
Signed-off-by: monada-bot[bot] <monabot@monada.co>
Signed-off-by: monada-bot[bot] <monabot@monada.co>
See #2730
pr/e2e-full
label if this feature requires end-to-end testingBy submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.