We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@type
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());
It prints out
preflight (Array): num
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:
assert(cls.methods["bar"].child.asFunction()!.isVariadic == true);
No response
0.85.13
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: