We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
In Typescript, it will print
set 1 set 1
But In Assemblyscript, it will print
set 1 get set 123
Which will cause compatibility issue when port code.
class X { get y() { console.log("get"); return 123; } set y(z) { console.log("set", z); } } let x = new X(); x.y = x.y = 1;
compile and execute below code in both ts and as
v0.27.x
The text was updated successfully, but these errors were encountered:
fix: return the assigned value in assignments (#2773)
94fa207
Fixes #2770.
HerrCai0907
Successfully merging a pull request may close this issue.
Bug description
In Typescript, it will print
But In Assemblyscript, it will print
Which will cause compatibility issue when port code.
Steps to reproduce
compile and execute below code in both ts and as
AssemblyScript version
v0.27.x
The text was updated successfully, but these errors were encountered: