bring cloud;
let my = new cloud.Bucket();
let foo = inflight (): cloud.Bucket => {
return my;
};
test "test" {
foo();
}
This happened:
fail โ main.wsim ยป root/env0/test:test
โ Error: Resource "root/env0/test:test/Handler" does not have permission to perform operation "then" on resource "root/env0/Bucket".
I expected this:
to work
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.73.47
Node.js Version
No response
Platform(s)
No response
Community Notes
Please vote by adding a ๐ reaction to the issue to help us prioritize.
If you are interested to work on this issue, please leave a comment.
I tried this:
This happened:
I expected this:
to work
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.73.47
Node.js Version
No response
Platform(s)
No response
Community Notes