Skip to content
New issue

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

feat(gnovm): returns error like in Golang when assignment with a function which does not return any value #3049

Merged

Conversation

hthieu1110
Copy link
Contributor

@hthieu1110 hthieu1110 commented Oct 30, 2024

This PR aims at resolving this issue: #1082

This depends on #3017 because it refactored the code to sync the logic/code between AssignStmt vs ValueDecl.

Related #2695

Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests

@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Oct 30, 2024
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@hthieu1110 hthieu1110 changed the title Feat/cryptic error func return 0 value 1082 feat(gnovm): returns error as Go when assignment with a function which does not return any value Oct 30, 2024
@Kouteki Kouteki added this to the 🚀 Mainnet launch milestone Nov 21, 2024
@hthieu1110 hthieu1110 changed the title feat(gnovm): returns error as Go when assignment with a function which does not return any value feat(gnovm): returns error like in Golang when assignment with a function which does not return any value Nov 21, 2024
@Kouteki Kouteki added the in focus Core team is prioritizing this work label Nov 22, 2024
@hthieu1110 hthieu1110 marked this pull request as ready for review November 22, 2024 08:15
@Kouteki Kouteki requested a review from ltzmaxwell November 24, 2024 10:32
@ltzmaxwell ltzmaxwell merged commit 30aac2a into gnolang:master Nov 25, 2024
101 checks passed
n0izn0iz pushed a commit to n0izn0iz/gno that referenced this pull request Nov 26, 2024
…tion which does not return any value (gnolang#3049)

This PR aims at resolving this issue:
gnolang#1082

This depends on gnolang#3017 because it
refactored the code to sync the logic/code between AssignStmt vs
ValueDecl.

Related gnolang#2695

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
</details>

---------

Co-authored-by: hieu.ha <[email protected]>
Co-authored-by: Mikael VALLENET <[email protected]>
@Kouteki Kouteki removed the in focus Core team is prioritizing this work label Nov 29, 2024
@gnolang gnolang deleted a comment from Gno2D2 Dec 2, 2024
r3v4s pushed a commit to gnoswap-labs/gno that referenced this pull request Dec 10, 2024
…tion which does not return any value (gnolang#3049)

This PR aims at resolving this issue:
gnolang#1082

This depends on gnolang#3017 because it
refactored the code to sync the logic/code between AssignStmt vs
ValueDecl.

Related gnolang#2695

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
</details>

---------

Co-authored-by: hieu.ha <[email protected]>
Co-authored-by: Mikael VALLENET <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants