class Foo {
pub bar(...xs: Array<num>): num {
let var total = 0;
for x in xs {
total += x;
}
return total;
}
}
let t = @type(Foo);
let cls = t.asClass()!;
log(cls.methods["bar"].child.toString());
This happened:
It prints out
preflight (Array): num
I expected this:
It should print out something like
preflight (...Array<num>): num
I also expected to have some way to see if the function is variadic or not:
I tried this:
This happened:
It prints out
I expected this:
It should print out something like
I also expected to have some way to see if the function is variadic or not:
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.85.13
Node.js Version
No response
Platform(s)
No response
Community Notes