bring cloud;
class A {
pub bucket: cloud.Bucket;
new() {
this.bucket = new cloud.Bucket();
}
}
class B {
pub a: A;
new() {
this.a = new A();
}
}
let b1 = new B() as "B1";
let b2 = new B() as "B2";
new cloud.Function(inflight () => {
b1.a.bucket.put("hello.txt", "world");
b2.a.bucket.list();
});
nodeof(b1.a.bucket).hidden = true;
nodeof(b2.a).hidden = true;
This happened:
I expected this:
I expected to see:
A connection from Function to B1/A (with the .
A connection from Function to B2.
Is there a workaround?
No response
Anything else?
No response
Wing Version
No response
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:
I expected to see:
Function
toB1/A
(with the .Function
toB2
.Is there a workaround?
No response
Anything else?
No response
Wing Version
No response
Node.js Version
No response
Platform(s)
No response
Community Notes