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

fix(gnovm): repair selector type aliasing #2483

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

deelawn
Copy link
Contributor

@deelawn deelawn commented Jul 2, 2024

Closes #2479.

When defining a type alias to a type in another package, the existing type is specified with a selector expression. This PR ensures that the underlying type being aliased is properly extracted.

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
  • Added new benchmarks to generated graphs, if any. More info here.

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

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.86%. Comparing base (ebf4d8f) to head (7ab6e12).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2483      +/-   ##
==========================================
- Coverage   54.92%   54.86%   -0.06%     
==========================================
  Files         595      593       -2     
  Lines       79447    79349      -98     
==========================================
- Hits        43637    43536     -101     
- Misses      32516    32530      +14     
+ Partials     3294     3283      -11     
Flag Coverage Δ
contribs/gnodev 25.65% <ø> (-0.35%) ⬇️
contribs/gnofaucet 14.46% <ø> (ø)
contribs/gnokeykc 0.00% <ø> (ø)
contribs/gnomd 0.00% <ø> (ø)
gno.land 63.14% <ø> (ø)
gnovm 60.21% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@deelawn deelawn merged commit 5083bcb into gnolang:master Jul 16, 2024
89 checks passed
@deelawn deelawn deleted the bug/type-alias branch July 16, 2024 13:44
gfanton pushed a commit to gfanton/gno that referenced this pull request Jul 23, 2024
Closes gnolang#2479.

When defining a type alias to a type in another package, the existing
type is specified with a selector expression. This PR ensures that the
underlying type being aliased is properly extracted.

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

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
- [x] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>

Co-authored-by: Manfred Touron <94029+moul@users.noreply.github.com>
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.

unexpected type declaration type *gnolang.TypeType when using type alias from a remote package.
3 participants